]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/maketools
corrected assert even better
[wxWidgets.git] / wxPython / distrib / maketools
CommitLineData
a6139dac
RD
1#!/bin/bash
2#----------------------------------------------------------------------
3
4if [ -z $1 ]; then
5 echo "Please specify a version number on the command line."
6 exit 1
7fi
8
9if [ ! -d wxPython ]; then
10 echo "Please run this script from the root wxPython directory."
11 exit 1
12fi
13
14mkdir _distrib_tgz
15mkdir _distrib_tgz/wxPython-$1
16
17cp -R tools _distrib_tgz/wxPython-$1
18
19# do some cleanup
20rm -rf `find _distrib_tgz/wxPython-$1 -name CVS`
21rm -f `find _distrib_tgz/wxPython-$1 -name "*.pyc"`
22rm -f `find _distrib_tgz/wxPython-$1 -name .cvsignore`
23rm -f `find _distrib_tgz/wxPython-$1 -name core`
24rm -f `find _distrib_tgz/wxPython-$1 -name wxPython`
25rm -f `find _distrib_tgz/wxPython-$1 -name *.o`
26rm -f `find _distrib_tgz/wxPython-$1 -name *.so`
27
28cd _distrib_tgz
29
30tar cvf ../dist/wxPython-tools-$1.tar wxPython-$1
31gzip ../dist/wxPython-tools-$1.tar
32
33cd ..
34rm -r _distrib_tgz
35
36
37
38