echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
if [ $# -lt 6 ]; then
- echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION KIND PYVER..."
+ echo "Usage: $0 WXDIR DESTDIR SKIPCLEAN VERSION KIND PYVER"
exit 1
fi
SKIPCLEAN=$3
VERSION=$4
KIND=$5
-shift;shift;shift;shift;shift
-PYVER=$@
+PYVER=$6
#export PATH=/sw/bin:/usr/local/bin:$PATH
#exit 0
# untar the source
-echo "Unarchiving wxPython-src-$VERSION.tar.gz"
+echo "Unarchiving wxPython-src-$VERSION.tar.bz2"
cd $DESTDIR
-tar xzf wxPython-src-$VERSION.tar.gz
-rm wxPython-src-$VERSION.tar.gz
+tar xjf wxPython-src-$VERSION.tar.bz2
+rm wxPython-src-$VERSION.tar.bz2
echo "Invoking wxPythonOSX build script..."
export TARBALLDIR=$DESTDIR
mkdir -p dist
if [ $KIND = panther ]; then
- distrib/mac/wxPythonOSX/build $KIND inplace unicode
+ distrib/mac/wxPythonOSX/build $PYVER $KIND inplace unicode
fi
-distrib/mac/wxPythonOSX/build $KIND inplace
+distrib/mac/wxPythonOSX/build $PYVER $KIND inplace
echo "Copying installers to $DESTDIR..."
if [ $SKIPCLEAN != yes ]; then
echo "Cleaning up..."
rm -r $WXDIR || true
- rm wxPython-docs-$VERSION.tar.gz
- rm wxPython-demo-$VERSION.tar.gz
+ rm wxPython-docs-$VERSION.tar.bz2
+ rm wxPython-demo-$VERSION.tar.bz2
fi
echo "-=-=-=- Goodbye! -=-=-=-"