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 #----------------------------------------------------------------------
10 echo "Please specify a version number on the command line."
14 if [ ! -d wxPython
]; then
15 echo "Please run this script from the root wxPython directory."
20 mkdir _distrib_tgz
/wxPython
-$1
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
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
35 # and make a tar file containing those files
36 tar cf _distrib_tgz
/dist
-temp.
tar -T _distrib_tgz
/filelist
38 # now untar it in the right place
39 cd _distrib_tgz
/wxPython
-$1
40 tar xf ..
/dist
-temp.
tar
44 rm wxPython
-$1/src
/gtk
/helpers.cpp
45 touch `find wxPython-$1 -name "*.cpp"`
46 touch `find wxPython-$1 -name "*.py"`
48 # Finally, make the finished tar file
49 tar cvf ..
/distrib
/wxPython
-$1.
tar wxPython
-$1
50 gzip ..
/distrib
/wxPython
-$1.
tar