From 20ae871940b8b7f773b0fdc31f8e053cc3cf4884 Mon Sep 17 00:00:00 2001 From: Sebastian Nowicki Date: Wed, 28 May 2008 03:23:56 +0800 Subject: [PATCH] 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 Acked-by: Dan McGee Acked-by: Aaron Griffin Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 3 +++ 1 file changed, 3 insertions(+) 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"