]> git.saurik.com Git - wxWidgets.git/blame - 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
c368d904
RD
1#!/bin/bash
2#----------------------------------------------------------------------
3
c368d904
RD
4if [ ! -d wxPython ]; then
5 echo "Please run this script from the root wxPython directory."
6 exit 1
7fi
8
bc59c206
RD
9VERSION=`python -c "import setup;print setup.VERSION"`
10
c368d904 11mkdir _distrib_tgz
bc59c206 12mkdir _distrib_tgz/wxPython-$VERSION
c368d904 13
bc59c206
RD
14cp -R demo _distrib_tgz/wxPython-$VERSION
15cp -R samples _distrib_tgz/wxPython-$VERSION
c368d904
RD
16
17# do some cleanup
bc59c206
RD
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 ".#*"`
c368d904
RD
28
29cd _distrib_tgz
30
cb56afc4
RD
31tar cvf ../dist/wxPython-demo-$VERSION.tar wxPython-$VERSION
32gzip -9 ../dist/wxPython-demo-$VERSION.tar
c368d904
RD
33
34cd ..
35rm -r _distrib_tgz
36
37
38
39