2 # tarwxall: make up a tar.gz distribution of wxX11
3 # Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
5 # We can't use e.g. this:
6 # ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWidgets-$VERSION-gen.zip
7 # because there's not enough space on the command line, plus we need to ignore the
12 if [ "$ARCH" = "ppc" ]; then
23 for line in `cat $toexpand` ; do
24 if [ "$line" != "" ]; then
25 ls $line >> $outputfile
27 uniq < $outputfile > /tmp/uniqtemp.txt
28 mv /tmp/uniqtemp.txt $outputfile
36 echo Usage: tarwxx11 wx-dir output-dir version
42 echo Usage: tarwxx11 wx-dir output-dir version
48 echo Usage: tarwxx11 wx-dir output-dir version
54 echo About to archive wxAll:
57 echo CTRL-C if this is not correct.
62 echo Removing backup files...
63 rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
65 rm -f $2/wxX11-${WXVER}*.tar.gz
66 rm -f $2/wxX11-${WXVER}
68 ### wxX11: combined wxMotif and wxX11 distributions
70 cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/x11.rsp $1/distrib/msw/univ.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/deprecated.rsp $1/distrib/msw/utils.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/ogl.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp > /tmp/wxx11_in.txt
71 expandlines /tmp/wxx11_in.txt /tmp/wxx11.txt
72 $TAR cf $2/wxX11-${WXVER}.tar -T /tmp/wxx11.txt
74 echo Re-tarring wxX11 in a subdirectory...
78 $TAR xf ../wxX11-${WXVER}.tar
80 rm -f wxX11-${WXVER}.tar
81 $TAR cf $2/wxX11-${WXVER}.tar wxX11-${WXVER}/*
82 rm -f -r wxX11-${WXVER}
83 gzip $2/wxX11-${WXVER}.tar