Tweaks to Mac OS X build script to run

This commit is contained in:
Keith Winstein
2012-04-09 15:49:24 -04:00
parent 4012348ec7
commit d37b1c4387
+4 -9
View File
@@ -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"