]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/distrib/maketgz
Moved wxPy_ConvertList function from oglhelpers to helpers
[wxWidgets.git] / utils / wxPython / distrib / maketgz
1 #!/bin/bash
2 #----------------------------------------------------------------------
3 # Make a source distribution as a tar.gz file. This script should be
4 # run from the directory that holds the wxPython dir (../..) and be
5 # given a version number as an parameter. The best way to do this is
6 # run "make dist" in the wxPython/src/ directory.
7 #----------------------------------------------------------------------
8
9 if [ -z $1 ]; then
10 echo "Please specify a version number on the command line."
11 exit 1
12 fi
13
14 if [ ! -d wxPython ]; then
15 echo "Please run this script from the directory containing the wxPython sources."
16 exit 1
17 fi
18
19
20 rm -f wxPython/distrib/filelist
21 for x in `cat wxPython/distrib/wxPython.rsp`; do
22 ls $x >> wxPython/distrib/filelist
23 done
24
25
26 tar cf wxPython/distrib/dist-temp.tar -T wxPython/distrib/filelist
27 cd wxPython/distrib
28 tar xf dist-temp.tar
29 rm dist-temp.tar
30 mv wxPython wxPython-$1
31
32 tar cvf wxPython-$1.tar wxPython-$1
33 gzip wxPython-$1.tar
34
35 rm -rf wxPython-$1
36