aboutsummaryrefslogtreecommitdiffhomepage
path: root/macosx
diff options
context:
space:
mode:
authorGravatar Keith Winstein <keithw@mit.edu>2012-04-09 15:49:24 -0400
committerGravatar Keith Winstein <keithw@mit.edu>2012-04-09 15:51:26 -0400
commitd37b1c43872211c385a050d38341ece3d61c88d6 (patch)
treeb6411c7373dc23a16aea83107b802a5152a764b5 /macosx
parent4012348ec7b625f5ad2bba1bdad71d1b847c94b9 (diff)
Tweaks to Mac OS X build script to run
Diffstat (limited to 'macosx')
-rwxr-xr-xmacosx/build.sh13
1 files changed, 4 insertions, 9 deletions
diff --git a/macosx/build.sh b/macosx/build.sh
index b492599..81f7467 100755
--- a/macosx/build.sh
+++ b/macosx/build.sh
@@ -12,17 +12,12 @@ then
./autogen.sh
fi
-CONFIG_ARGS=--prefix=`pwd`/macosx/prefix
-
-if [ -f config.log ];
-then
- grep -e "$CONFIG_ARGS" config.log > /dev/null || ./configure "$CONFIG_ARGS"
-else
- ./configure "$CONFIG_ARGS"
-fi
+./configure --prefix=`pwd`/macosx/prefix
make install -j8
+perl -wlpi -e 's{#!/usr/bin/env perl}{#!/usr/bin/perl}' `pwd`/macosx/prefix/bin/mosh
+
popd > /dev/null
echo "Preprocessing package description..."
@@ -44,7 +39,7 @@ done
popd > /dev/null
echo "Running PackageMaker..."
-/Applications/PackageMaker.app/Contents/MacOS/PackageMaker -d mosh-package.pmdoc -o "$OUTFILE"
+PackageMaker -d mosh-package.pmdoc -o "$OUTFILE"
echo "Cleaning up..."
rm -r "$OUTDIR"