mkdir -p $TOPDIR
chown $USER $TOPDIR
rm -rf $BUILDDIR
cp -pR . $BUILDDIR || { cd; rm -rf $BUILDDIR; exit 1; }
mkdir -p $TOPDIR
chown $USER $TOPDIR
rm -rf $BUILDDIR
SOURCE=`echo $SOURCE | sed "s|^[^/]|$HOME/&|"`
cd $TOPDIR
case $SOURCE in
*.tar.gz)
gunzip -c $SOURCE | tar xf -
;;
*.tar.bz2)
bunzip2 -c $SOURCE | tar xf -
;;
*.zip)
unzip $SOURCE
;;
esac
mv wx* $BUILDDIR
./configure --disable-precomp-headers
find . -name Makefile | xargs perl -pi -e 's/^(?:CC|CXX) = /$&ccache /'
setting up
set up
MINSPACE=1000000
DSPACE=`df -Pk $BUILDDIR | tail -1 | awk '{ print $4 }'`
if [ $DSPACE -lt $MINSPACE ]; then
echo "Disk space low, skipping build"
exit 1
fi
if [ -z "$CCACHE_DIR" ]; then
gunzip -c $HOME/src/ccache-*.tar.gz | tar xf -
cd ccache-*
make
strip ccache
make install
cd $BUILDDIR
rm -r ccache-*
fi
if { cppunit-config --version || "$CPPUNIT_CONFIG" --version; } 2>/dev/null; then
HAVE_CPPUNIT=1
fi
if [ -z "$HAVE_CPPUNIT" ]; then
gunzip -c $HOME/src/cppunit-*.tar.gz | tar xf -
cd cppunit-*
make install-strip
chmod +x $OPTDIR/bin/cppunit-config
cd $BUILDDIR
rm -rf cppunit-*
fi
set -e
uname -smnr
umask 022
LANG=C
TOPDIR=
BUILDDIR=$TOPDIR/build
OPTDIR=$HOME/opt/
INSTALLDIR=$TOPDIR/install
case `uname -sm` in
Linux*86*) PATH=$HOME/linux-x86/bin:$PATH ;;
esac
PATH=$OPTDIR/bin:$PATH
LD_LIBRARY_PATH=$BUILDDIR/lib:$OPTDIR/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
if { ccache -V; } >/dev/null 2>&1; then
CCACHE_DIR=$TOPDIR/ccache
export CCACHE_DIR
ccache -M 120M
fi
cd $BUILDDIR
if [ -f wx-config ]; then
`./wx-config --cxx` --version
fi
trap 'cd; rm -rf $BUILDDIR' EXIT
trap '' EXIT
/tmp/wx/