2000-10-30 16:08:42 -05:00
|
|
|
#!/bin/bash
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
if [ ! -d wxPython ]; then
|
|
|
|
echo "Please run this script from the root wxPython directory."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2004-01-13 21:11:55 -05:00
|
|
|
VERSION=`python -c "import setup;print setup.VERSION"`
|
|
|
|
|
2000-10-30 16:08:42 -05:00
|
|
|
mkdir _distrib_tgz
|
2004-01-13 21:11:55 -05:00
|
|
|
mkdir _distrib_tgz/wxPython-$VERSION
|
2000-10-30 16:08:42 -05:00
|
|
|
|
2004-01-13 21:11:55 -05:00
|
|
|
cp -R demo _distrib_tgz/wxPython-$VERSION
|
|
|
|
cp -R samples _distrib_tgz/wxPython-$VERSION
|
2000-10-30 16:08:42 -05:00
|
|
|
|
|
|
|
# do some cleanup
|
2004-01-13 21:11:55 -05:00
|
|
|
rm -rf `find _distrib_tgz/wxPython-$VERSION -name CVS`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.pyc"`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name .cvsignore`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name "core.[0-9]*"`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name "core"`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name wxPython`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.o"`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.so"`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name "*~"`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$VERSION -name ".#*"`
|
2000-10-30 16:08:42 -05:00
|
|
|
|
|
|
|
cd _distrib_tgz
|
|
|
|
|
2004-01-13 21:11:55 -05:00
|
|
|
tar cvf ../dist/wxPythonDemo-$VERSION.tar wxPython-$VERSION
|
|
|
|
gzip -9 ../dist/wxPythonDemo-$VERSION.tar
|
2000-10-30 16:08:42 -05:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -r _distrib_tgz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|