]>
Commit | Line | Data |
---|---|---|
c368d904 RD |
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 | |
d7ec6564 | 18 | cp -R samples _distrib_tgz/wxPython-$1 |
c368d904 RD |
19 | |
20 | # do some cleanup | |
21 | rm -rf `find _distrib_tgz/wxPython-$1 -name CVS` | |
22 | rm -f `find _distrib_tgz/wxPython-$1 -name "*.pyc"` | |
23 | rm -f `find _distrib_tgz/wxPython-$1 -name .cvsignore` | |
1e4a197e | 24 | rm -f `find _distrib_tgz/wxPython-$1 -name "core*"` |
a6139dac | 25 | rm -f `find _distrib_tgz/wxPython-$1 -name wxPython` |
1e4a197e RD |
26 | rm -f `find _distrib_tgz/wxPython-$1 -name "*.o"` |
27 | rm -f `find _distrib_tgz/wxPython-$1 -name "*.so"` | |
28 | rm -f `find _distrib_tgz/wxPython-$1 -name "*~"` | |
29 | rm -f `find _distrib_tgz/wxPython-$1 -name ".#*"` | |
c368d904 RD |
30 | |
31 | cd _distrib_tgz | |
32 | ||
09740c31 | 33 | tar cvf ../dist/wxPythonDemo-$1.tar wxPython-$1 |
1e4a197e | 34 | gzip -9 ../dist/wxPythonDemo-$1.tar |
c368d904 RD |
35 | |
36 | cd .. | |
37 | rm -r _distrib_tgz | |
38 | ||
39 | ||
40 | ||
41 |