File: file.MinGW

package info (click to toggle)
nexus 4.3.2-svn1921-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 45,052 kB
  • sloc: java: 70,724; cpp: 34,810; ansic: 19,434; xml: 4,191; python: 4,123; f90: 2,326; fortran: 1,529; makefile: 1,105; sh: 809; tcl: 173; lisp: 169; pascal: 93; haskell: 27
file content (22 lines) | stat: -rwxr-xr-x 737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# $Id$
#

# hack to get round the problem that libtool 1.5 uses the "file"
# command and MinGW does not provide one (see README.MinGW)

# install this as  /usr/local/bin/file   and chmod +x it
 
 while $(echo "$1" | grep --silent "^-")
 do
 	shift
 done
 
 case "$1" in
 	*.exe) echo "MS Windows PE 32-bit Intel 80386 console executable not relocatable" ;; # libtool doesn"t match the "32-bit"
 	*.dll) echo "MS Windows PE 32-bit Intel 80386 console DLL" ;;
 	*.dll.a) echo "ar archive import library" ;; # <-- import library for relocatable library
 	*.a | *.lib) echo "ar archive" ;; # <-- could be static library or import library for relocatable library; libtool will use objdump to find out
 	*) echo "unknown" ;;
 esac