From: Jack Jansen Date: Sat, 22 Mar 2003 00:02:23 +0000 (+0000) Subject: Lots of tweaks to make this work in the new setting. Not fully tested yet. X-Git-Tag: v2.3c1~1391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57c914c1aac07083ac2c03e6501750d662e0eb6b;p=thirdparty%2FPython%2Fcpython.git Lots of tweaks to make this work in the new setting. Not fully tested yet. --- diff --git a/Mac/OSX/Dist/build b/Mac/OSX/Dist/build index f684d4363c66..a8976facecec 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 <