Added more tools for building distributions, and new scripts for the

wxPythonOSX dist.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-29 02:50:29 +00:00
parent e47e2832b8
commit 2d5b1ffde7
16 changed files with 1250 additions and 8 deletions

View File

@@ -2,10 +2,13 @@
#----------------------------------------------------------------------
# Build MacPython 2.3 and make an Installer package of it
# TODO: Parameterize the versions, builddirs, etc...
# Script configs
PYVERSION=2.3a1
BUILDNUM=1
DOCLEANUP=yes
PYVER=2.3
BUILDNUM=2
DOCLEANUP=no
PROGDIR="`dirname \"$0\"`"
TMPDIR=/tmp/_py
@@ -21,6 +24,7 @@ WASTEDIR=/projects/waste
# Setup
mkdir -p $BUILDROOT
mkdir -p $INSTALLROOT
rm -rf $DMGDIR
mkdir -p $DMGDIR/root
@@ -45,7 +49,7 @@ popd
rm -r $INSTALLROOT/usr
# Next, remove the .pyc/.pyo files
python $PROGDIR/../zappycfiles.py $INSTALLROOT
python $PROGDIR/../zappycfiles.py $INSTALLROOT/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER
# Make the welcome message
cat > $RESOURCEDIR/Welcome.txt <<EOF
@@ -59,11 +63,14 @@ EOF
# Finally, build the package...
rm -rf MacPython-OSX.pkg
python $PROGDIR/../buildpkg.py \
--Title=MacPython-OSX \
--Version=$PYVERSION-$BUILDNUM \
--Description="Python $PYVERSION for Mac OS X, framework based" \
--NeedsAuthorization="YES" \
--Relocatable="NO" \
--InstallOnly="YES" \
$INSTALLROOT \
$RESOURCEDIR
@@ -77,8 +84,14 @@ mv $DMGDIR/MacPython-OSX-$PYVERSION-$BUILDNUM.dmg $DESTDIR
# Cleanup build/install dirs
if [ $DOCLEANUP = yes ]; then
echo cleaning up...
echo "Cleaning up..."
rm -rf $BUILDROOT
rm -r $INSTALLROOT
rm -r $DMGDIR
rm -rf $INSTALLROOT
rm -rf $DMGDIR
else
echo "Cleanup is disabled. You should remove these dirs when done:"
echo " $BUILDROOT"
echo " $INSTALLROOT"
echo " $DMGDIR"
fi