]>
Commit | Line | Data |
---|---|---|
c368d904 RD |
1 | #!/bin/bash |
2 | #---------------------------------------------------------------------- | |
3 | ||
c368d904 RD |
4 | if [ ! -d wxPython ]; then |
5 | echo "Please run this script from the root wxPython directory." | |
6 | exit 1 | |
7 | fi | |
8 | ||
bc59c206 RD |
9 | VERSION=`python -c "import setup;print setup.VERSION"` |
10 | ||
c368d904 | 11 | mkdir _distrib_tgz |
bc59c206 | 12 | mkdir _distrib_tgz/wxPython-$VERSION |
c368d904 | 13 | |
bc59c206 RD |
14 | cp -R demo _distrib_tgz/wxPython-$VERSION |
15 | cp -R samples _distrib_tgz/wxPython-$VERSION | |
c368d904 RD |
16 | |
17 | # do some cleanup | |
bc59c206 RD |
18 | rm -rf `find _distrib_tgz/wxPython-$VERSION -name CVS` |
19 | rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.pyc"` | |
20 | rm -f `find _distrib_tgz/wxPython-$VERSION -name .cvsignore` | |
21 | rm -f `find _distrib_tgz/wxPython-$VERSION -name "core.[0-9]*"` | |
22 | rm -f `find _distrib_tgz/wxPython-$VERSION -name "core"` | |
23 | rm -f `find _distrib_tgz/wxPython-$VERSION -name wxPython` | |
24 | rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.o"` | |
25 | rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.so"` | |
26 | rm -f `find _distrib_tgz/wxPython-$VERSION -name "*~"` | |
27 | rm -f `find _distrib_tgz/wxPython-$VERSION -name ".#*"` | |
c368d904 RD |
28 | |
29 | cd _distrib_tgz | |
30 | ||
cb56afc4 RD |
31 | tar cvf ../dist/wxPython-demo-$VERSION.tar wxPython-$VERSION |
32 | gzip -9 ../dist/wxPython-demo-$VERSION.tar | |
c368d904 RD |
33 | |
34 | cd .. | |
35 | rm -r _distrib_tgz | |
36 | ||
37 | ||
38 | ||
39 |