2012-05-10 09:11:28 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
2012-05-30 07:27:50 +00:00
|
|
|
make distclean
|
2012-05-10 09:11:28 +00:00
|
|
|
rm -rf /tmp/fish_pkg
|
|
|
|
mkdir -p /tmp/fish_pkg/
|
2012-05-30 07:27:50 +00:00
|
|
|
|
|
|
|
# Make sure what we build can run on SnowLeopard
|
|
|
|
export OSX_SDK="/Developer/SDKs/MacOSX10.6.sdk"
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET="10.6"
|
|
|
|
export CC="clang -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
|
|
|
export CCX="clang++ -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
|
|
|
export CFLAGS="$CFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
|
|
|
export CXXFLAGS="$CXXFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
|
|
|
export LDFLAGS="$LDFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
|
|
|
autoconf
|
|
|
|
./configure --without-xsel
|
|
|
|
|
|
|
|
# Actually build it now
|
|
|
|
if make -j 4 DESTDIR=/tmp/fish_pkg install
|
2012-05-10 09:11:28 +00:00
|
|
|
then
|
|
|
|
echo "Root written to /tmp/fish_pkg/"
|
2012-05-25 06:56:07 +00:00
|
|
|
if /Developer/usr/bin/packagemaker --doc ./build_tools/fish_shell.pmdoc --out ~/fish_built/fishfish.pkg
|
2012-05-10 09:11:28 +00:00
|
|
|
then
|
2012-05-25 06:56:07 +00:00
|
|
|
echo "Package written to ~/fish_built/fishfish.pkg"
|
2012-05-10 09:11:28 +00:00
|
|
|
else
|
|
|
|
echo "Package could not be written"
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "Root could not be written"
|
|
|
|
fi
|