]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/distrib/makedemo
give an error message if we're built in Unicode mode (in response to bug 1079224)
[wxWidgets.git] / wxPython / distrib / makedemo
... / ...
CommitLineData
1#!/bin/bash
2#----------------------------------------------------------------------
3
4if [ ! -d wxPython ]; then
5 echo "Please run this script from the root wxPython directory."
6 exit 1
7fi
8
9VERSION=`python -c "import setup;print setup.VERSION"`
10
11mkdir _distrib_tgz
12mkdir _distrib_tgz/wxPython-$VERSION
13
14cp -R demo _distrib_tgz/wxPython-$VERSION
15cp -R samples _distrib_tgz/wxPython-$VERSION
16
17# do some cleanup
18rm -rf `find _distrib_tgz/wxPython-$VERSION -name CVS`
19rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.pyc"`
20rm -f `find _distrib_tgz/wxPython-$VERSION -name .cvsignore`
21rm -f `find _distrib_tgz/wxPython-$VERSION -name "core.[0-9]*"`
22rm -f `find _distrib_tgz/wxPython-$VERSION -name "core"`
23rm -f `find _distrib_tgz/wxPython-$VERSION -name wxPython`
24rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.o"`
25rm -f `find _distrib_tgz/wxPython-$VERSION -name "*.so"`
26rm -f `find _distrib_tgz/wxPython-$VERSION -name "*~"`
27rm -f `find _distrib_tgz/wxPython-$VERSION -name ".#*"`
28
29cd _distrib_tgz
30
31tar cvf ../dist/wxPython-demo-$VERSION.tar wxPython-$VERSION
32gzip -9 ../dist/wxPython-demo-$VERSION.tar
33
34cd ..
35rm -r _distrib_tgz
36
37
38
39