]>
Commit | Line | Data |
---|---|---|
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 directory." | |
16 | exit 1 | |
17 | fi | |
18 | ||
19 | cp $WXWIN/docs/gpl.txt wxPython | |
20 | cp $WXWIN/docs/lgpl.txt wxPython | |
21 | cp $WXWIN/docs/licence.txt wxPython | |
22 | cp $WXWIN/docs/licendoc.txt wxPython | |
23 | cp $WXWIN/docs/preamble.txt wxPython | |
24 | ||
25 | rm -f wxPython/distrib/filelist | |
26 | for x in `cat wxPython/distrib/wxPython.rsp`; do | |
27 | ls $x >> wxPython/distrib/filelist | |
28 | done | |
29 | ||
30 | ||
31 | tar cf wxPython/distrib/dist-temp.tar -T wxPython/distrib/filelist | |
32 | cd wxPython/distrib | |
33 | tar xf dist-temp.tar | |
34 | rm dist-temp.tar | |
35 | mv wxPython wxPython-$1 | |
36 | rm wxPython-$1/src/gtk/helpers.cpp | |
37 | ||
38 | tar cvf wxPython-$1.tar wxPython-$1 | |
39 | gzip wxPython-$1.tar | |
40 | ||
41 | rm -rf wxPython-$1 | |
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 |