1999-05-04 00:25:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Make a source distribution as a tar.gz file. This script should be
|
|
|
|
# run from the directory that holds the wxPython dir (../..) and be
|
|
|
|
# given a version number as an parameter. The best way to do this is
|
|
|
|
# run "make dist" in the wxPython/src/ directory.
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
if [ -z $1 ]; then
|
|
|
|
echo "Please specify a version number on the command line."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d wxPython ]; then
|
1999-11-07 07:49:09 +00:00
|
|
|
echo "Please run this script from the directory containing the wxPython directory."
|
1999-05-04 00:25:56 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
1999-11-13 07:52:03 +00:00
|
|
|
cp $WXWIN/docs/gpl.txt wxPython
|
|
|
|
cp $WXWIN/docs/lgpl.txt wxPython
|
|
|
|
cp $WXWIN/docs/licence.txt wxPython
|
|
|
|
cp $WXWIN/docs/licendoc.txt wxPython
|
|
|
|
cp $WXWIN/docs/preamble.txt wxPython
|
1999-05-04 00:25:56 +00:00
|
|
|
|
|
|
|
rm -f wxPython/distrib/filelist
|
|
|
|
for x in `cat wxPython/distrib/wxPython.rsp`; do
|
|
|
|
ls $x >> wxPython/distrib/filelist
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
tar cf wxPython/distrib/dist-temp.tar -T wxPython/distrib/filelist
|
|
|
|
cd wxPython/distrib
|
|
|
|
tar xf dist-temp.tar
|
|
|
|
rm dist-temp.tar
|
|
|
|
mv wxPython wxPython-$1
|
1999-10-12 03:04:38 +00:00
|
|
|
rm wxPython-$1/src/gtk/helpers.cpp
|
1999-05-04 00:25:56 +00:00
|
|
|
|
|
|
|
tar cvf wxPython-$1.tar wxPython-$1
|
|
|
|
gzip wxPython-$1.tar
|
|
|
|
|
|
|
|
rm -rf wxPython-$1
|
|
|
|
|
1999-11-13 07:52:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|