]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/makedemo
Merged wxPython 2.2.2 over to the main branch
[wxWidgets.git] / wxPython / distrib / makedemo
CommitLineData
c368d904
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 demo _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 _distrib_tgz/wxPython-$1/demo/core
24rm -rf _distrib_tgz/wxPython-$1/demo/wxPython
25
26cd _distrib_tgz
27
28tar cvf ../dist/wxPython-demo-$1.tar wxPython-$1
29gzip ../dist/wxPython-demo-$1.tar
30
31cd ..
32rm -r _distrib_tgz
33
34
35
36