2000-10-30 16:08:42 -05:00
|
|
|
#!/bin/bash
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
if [ -z $1 ]; then
|
|
|
|
echo "Please specify a version number on the command line."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d wxPython ]; then
|
|
|
|
echo "Please run this script from the root wxPython directory."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir _distrib_tgz
|
|
|
|
mkdir _distrib_tgz/wxPython-$1
|
|
|
|
|
|
|
|
cp -R demo _distrib_tgz/wxPython-$1
|
2001-04-30 14:32:18 -04:00
|
|
|
cp -R samples _distrib_tgz/wxPython-$1
|
2000-10-30 16:08:42 -05:00
|
|
|
|
|
|
|
# do some cleanup
|
|
|
|
rm -rf `find _distrib_tgz/wxPython-$1 -name CVS`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$1 -name "*.pyc"`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$1 -name .cvsignore`
|
2001-12-10 23:55:09 -05:00
|
|
|
rm -f `find _distrib_tgz/wxPython-$1 -name core`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$1 -name wxPython`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$1 -name *.o`
|
|
|
|
rm -f `find _distrib_tgz/wxPython-$1 -name *.so`
|
2000-10-30 16:08:42 -05:00
|
|
|
|
|
|
|
cd _distrib_tgz
|
|
|
|
|
2002-08-28 16:02:20 -04:00
|
|
|
tar cvf ../dist/wxPythonDemo-$1.tar wxPython-$1
|
|
|
|
gzip ../dist/wxPythonDemo-$1.tar
|
2000-10-30 16:08:42 -05:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -r _distrib_tgz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|