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