summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Nowicki <sebnow@gmail.com>2008-05-28 03:23:56 +0800
committerDan McGee <dan@archlinux.org>2008-05-29 06:37:14 -0500
commit20ae871940b8b7f773b0fdc31f8e053cc3cf4884 (patch)
treeaf066af5dde6537701c96dab767f6155e2a3228c
parentb9369a747d0c2fa3ee8371f99f5ca7acbc89f7f9 (diff)
downloadpacman-20ae871940b8b7f773b0fdc31f8e053cc3cf4884.tar.xz
Use "legacy mode" on Mac OSX (for file command)
For some reason `file` on Mac OSX has different arguments than BSD and Linux; -i no longer prints out the mime strings. With the environment variable COMMAND_MODE set to "legacy", `file` behaves more like it does on Linux and BSD, i.e., `file -i` prints the mime type. Signed-off-by: Sebastian Nowicki <sebnow@gmail.com> Acked-by: Dan McGee <dan@archlinux.org> Acked-by: Aaron Griffin <aaronmgriffin@gmail.com> Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index c81cd2da..a312b493 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -33,6 +33,9 @@
export TEXTDOMAIN='pacman'
export TEXTDOMAINDIR='@localedir@'
+# file -i does not work on Mac OSX unless legacy mode is set
+export COMMAND_MODE='legacy'
+
myver='@PACKAGE_VERSION@'
confdir='@sysconfdir@'
startdir="$PWD"