From 57c914c1aac07083ac2c03e6501750d662e0eb6b Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sat, 22 Mar 2003 00:02:23 +0000 Subject: [PATCH] Lots of tweaks to make this work in the new setting. Not fully tested yet. --- Mac/OSX/Dist/build | 30 +++++++++++--------- Mac/OSX/Dist/resources/postflight | 47 ++++++++++++++++++------------- 2 files changed, 44 insertions(+), 33 deletions(-) diff --git a/Mac/OSX/Dist/build b/Mac/OSX/Dist/build index f684d4363c..a8976facec 100755 --- a/Mac/OSX/Dist/build +++ b/Mac/OSX/Dist/build @@ -11,6 +11,14 @@ BUILDNUM=3 DOCLEANUP=no PROGDIR="`dirname \"$0\"`" +case x$PROGDIR in +x|x.) PROGDIR=`pwd` ;; +x/*) ;; +*) echo "Please run with a full pathname" + exit 1 + ;; +esac + TMPDIR=/tmp/_py #TMPDIR=/projects/_py @@ -18,9 +26,9 @@ BUILDROOT=$TMPDIR/build INSTALLROOT=$TMPDIR/install DMGDIR=$TMPDIR/dmg RESOURCEDIR=$PROGDIR/resources -DESTDIR=/projects/wx/wxPython/dist -PYTHONSRC=/projects/Python-$PYVERSION -WASTEDIR=/projects/waste +DESTDIR=$TMPDIR/dist +PYTHONSRC=$PROGDIR/../../.. +WASTEDIR=$PYTHONSRC/../waste # Setup mkdir -p $BUILDROOT @@ -71,10 +79,11 @@ popd # Make the Installer package: # First, remove the unix tools as their paths will be wrong. We'll recreate # them in the postinstall. -rm -r $INSTALLROOT/usr +rm -rf $INSTALLROOT/usr # Next, remove the .pyc/.pyo files -python $PROGDIR/../zappycfiles.py $INSTALLROOT/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER +python $PYTHONSRC/Mac/scripts/zappycfiles.py $INSTALLROOT/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER +python $PYTHONSRC/Mac/scripts/zappycfiles.py $INSTALLROOT/Library/Frameworks/Python.framework/Versions/$PYVER/Mac/Tools # Make the welcome message cat > $RESOURCEDIR/Welcome.txt < $TOOLDIR/pythonw < $TOOLDIR/pythonw$PYVER <