X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6139dacacea9c08c76c320a5cf8f2390122df86..f78e4942ec0f3f6abd2992502e2d6c5c2e8e55f6:/wxPython/distrib/makedemo?ds=sidebyside diff --git a/wxPython/distrib/makedemo b/wxPython/distrib/makedemo index 7dfe6cc356..54eb2f85c9 100755 --- a/wxPython/distrib/makedemo +++ b/wxPython/distrib/makedemo @@ -1,35 +1,35 @@ #!/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 +VERSION=`python -c "import setup;print setup.VERSION"` + mkdir _distrib_tgz -mkdir _distrib_tgz/wxPython-$1 +mkdir _distrib_tgz/wxPython-$VERSION -cp -R demo _distrib_tgz/wxPython-$1 -cp -R samples _distrib_tgz/wxPython-$1 +cp -R demo _distrib_tgz/wxPython-$VERSION +cp -R samples _distrib_tgz/wxPython-$VERSION # 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` -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` +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 ".#*"` cd _distrib_tgz -tar cvf ../dist/wxPython-demo-$1.tar wxPython-$1 -gzip ../dist/wxPython-demo-$1.tar +tar cvf ../dist/wxPython-demo-$VERSION.tar wxPython-$VERSION +gzip -9 ../dist/wxPython-demo-$VERSION.tar cd .. rm -r _distrib_tgz