]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/distrib/maketgz
Added a demo showing how to use wxPostEvent
[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
65dd82cb 15 echo "Please run this script from the directory containing the wxPython directory."
e6c95f27
RD
16 exit 1
17fi
18
65dd82cb
RD
19cp $WXWIN\docs\gpl.txt wxPython
20cp $WXWIN\docs\lgpl.txt wxPython
21cp $WXWIN\docs\licence.txt wxPython
22cp $WXWIN\docs\licendoc.txt wxPython
23cp $WXWIN\docs\preamble.txt wxPython
e6c95f27
RD
24
25rm -f wxPython/distrib/filelist
26for x in `cat wxPython/distrib/wxPython.rsp`; do
27 ls $x >> wxPython/distrib/filelist
28done
29
30
31tar cf wxPython/distrib/dist-temp.tar -T wxPython/distrib/filelist
32cd wxPython/distrib
33tar xf dist-temp.tar
34rm dist-temp.tar
35mv wxPython wxPython-$1
07cb3fd3 36rm wxPython-$1/src/gtk/helpers.cpp
e6c95f27
RD
37
38tar cvf wxPython-$1.tar wxPython-$1
39gzip wxPython-$1.tar
40
41rm -rf wxPython-$1
42