]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/maketgz
wxGTK SWIGged updates for:
[wxWidgets.git] / 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 root wxPython directory."
16 exit 1
17 fi
18
19 mkdir _distrib_tgz
20 mkdir _distrib_tgz/wxPython-$1
21
22 # Copy license files
23 cp $WXWIN/docs/gpl.txt _distrib_tgz/wxPython-$1
24 cp $WXWIN/docs/lgpl.txt _distrib_tgz/wxPython-$1
25 cp $WXWIN/docs/licence.txt _distrib_tgz/wxPython-$1
26 cp $WXWIN/docs/licendoc.txt _distrib_tgz/wxPython-$1
27 cp $WXWIN/docs/preamble.txt _distrib_tgz/wxPython-$1
28
29 # Copy files from the live dirs
30 # first, get a list of files
31 for x in `cat distrib/wxPython.rsp`; do
32 ls $x >> _distrib_tgz/filelist
33 done
34
35 # and make a tar file containing those files
36 tar cf _distrib_tgz/dist-temp.tar -T _distrib_tgz/filelist
37
38 # now untar it in the right place
39 cd _distrib_tgz/wxPython-$1
40 tar xf ../dist-temp.tar
41 cd ..
42
43 # update a few things
44 rm wxPython-$1/src/gtk/helpers.cpp
45 touch `find wxPython-$1 -name "*.cpp"`
46 touch `find wxPython-$1 -name "*.py"`
47
48 # Finally, make the finished tar file
49 tar cvf ../distrib/wxPython-$1.tar wxPython-$1
50 gzip ../distrib/wxPython-$1.tar
51
52 cd ..
53 rm -rf _distrib_tgz
54
55
56
57
58
59
60
61
62