]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/makedemo
Children need to be updated in size_allocate even if widget is not realized.
[wxWidgets.git] / wxPython / distrib / makedemo
1 #!/bin/bash
2 #----------------------------------------------------------------------
3
4 if [ ! -d wxPython ]; then
5 echo "Please run this script from the root wxPython directory."
6 exit 1
7 fi
8
9 VERSION=`python -c "import setup;print setup.VERSION"`
10
11 mkdir _distrib_tgz
12 mkdir _distrib_tgz/wxPython-$VERSION
13
14 cp -R demo _distrib_tgz/wxPython-$VERSION
15 cp -R samples _distrib_tgz/wxPython-$VERSION
16
17 # do some cleanup
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 ".#*"`
28
29 cd _distrib_tgz
30
31 tar cvf ../dist/wxPython-demo-$VERSION.tar wxPython-$VERSION
32 bzip2 -9 -f ../dist/wxPython-demo-$VERSION.tar
33
34 cd ..
35 rm -r _distrib_tgz
36
37
38
39