]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/distrib/maketgz
gernerated source code updates
[wxWidgets.git] / utils / wxPython / distrib / maketgz
CommitLineData
e6c95f27
RD
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
9if [ -z $1 ]; then
10 echo "Please specify a version number on the command line."
11 exit 1
12fi
13
14if [ ! -d wxPython ]; then
15 echo "Please run this script from the directory containing the wxPython sources."
16 exit 1
17fi
18
19
20rm -f wxPython/distrib/filelist
21for x in `cat wxPython/distrib/wxPython.rsp`; do
22 ls $x >> wxPython/distrib/filelist
23done
24
25
26tar cf wxPython/distrib/dist-temp.tar -T wxPython/distrib/filelist
27cd wxPython/distrib
28tar xf dist-temp.tar
29rm dist-temp.tar
30mv wxPython wxPython-$1
31
32tar cvf wxPython-$1.tar wxPython-$1
33gzip wxPython-$1.tar
34
35rm -rf wxPython-$1
36