Don't assume that, in the output of the file command, the architecture

appears at the end - if the user's installed an up-to-date version of
file to, for example, get pcap-ng files identified (Apple hasn't updated
file in *ages* - they're still in file 5.04!), it will report, for
example, "Mach-O 64-bit x86_64 executable" rather than "Mach-O 64-bit
executable x86_64" for an x86-64 binary.

svn path=/trunk/; revision=46954
This commit is contained in:
Guy Harris 2013-01-05 23:07:05 +00:00
parent d8dfa8597f
commit a70b2c5208
1 changed files with 4 additions and 4 deletions

View File

@ -103,16 +103,16 @@ fi
# Get the architecture
case `file $ws_bin` in
*Mach-O*64-bit*x86_64)
*Mach-O*64-bit*x86_64*)
architecture="Intel 64"
;;
*Mach-O*i386)
*Mach-O*i386*)
architecture="Intel 32"
;;
*Mach-O*ppc64)
*Mach-O*ppc64*)
architecture="PPC 64"
;;
*Mach-O*ppc)
*Mach-O*ppc*)
architecture="PPC 32"
;;
*)