]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/makedemo
Change demo to not try to drop the table when it thinks it is creating it for the...
[wxWidgets.git] / wxPython / distrib / makedemo
1 #!/bin/bash
2 #----------------------------------------------------------------------
3
4 if [ -z $1 ]; then
5 echo "Please specify a version number on the command line."
6 exit 1
7 fi
8
9 if [ ! -d wxPython ]; then
10 echo "Please run this script from the root wxPython directory."
11 exit 1
12 fi
13
14 mkdir _distrib_tgz
15 mkdir _distrib_tgz/wxPython-$1
16
17 cp -R demo _distrib_tgz/wxPython-$1
18
19 # do some cleanup
20 rm -rf `find _distrib_tgz/wxPython-$1 -name CVS`
21 rm -f `find _distrib_tgz/wxPython-$1 -name "*.pyc"`
22 rm -f `find _distrib_tgz/wxPython-$1 -name .cvsignore`
23 rm -f _distrib_tgz/wxPython-$1/demo/core
24 rm -rf _distrib_tgz/wxPython-$1/demo/wxPython
25
26 cd _distrib_tgz
27
28 tar cvf ../dist/wxPython-demo-$1.tar wxPython-$1
29 gzip ../dist/wxPython-demo-$1.tar
30
31 cd ..
32 rm -r _distrib_tgz
33
34
35
36