]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tarwxx11
Fixes for WinCE build caused by my last commit.
[wxWidgets.git] / distrib / msw / tarwxx11
CommitLineData
2b5f62a0
VZ
1#!/bin/sh
2# tarwxall: make up a tar.gz distribution of wxX11
3# Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
4
5# We can't use e.g. this:
77ffb593 6# ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWidgets-$VERSION-gen.zip
2b5f62a0
VZ
7# because there's not enough space on the command line, plus we need to ignore the
8# blank lines.
9
10TAR=tar
11ARCH=`arch`
12if [ "$ARCH" = "ppc" ]; then
13 TAR=gnutar
14fi
15
16expandlines()
17{
18 toexpand=$1
19 outputfile=$2
20
21 rm -f $outputfile
22 touch $outputfile
23 for line in `cat $toexpand` ; do
24 if [ "$line" != "" ]; then
25 ls $line >> $outputfile
26 fi
27 uniq < $outputfile > /tmp/uniqtemp.txt
28 mv /tmp/uniqtemp.txt $outputfile
29 done
30}
31
32
33init=""
34if [ "$1" = "" ]
35then
36 echo Usage: tarwxx11 wx-dir output-dir version
37 exit
38fi
39
40if [ "$2" = "" ]
41then
42 echo Usage: tarwxx11 wx-dir output-dir version
43 exit
44fi
45
46if [ "$3" = "" ]
47then
48 echo Usage: tarwxx11 wx-dir output-dir version
49 exit
50fi
51
52WXVER=$3
53
54echo About to archive wxAll:
55echo From $1
56echo To $2
57echo CTRL-C if this is not correct.
58read dummy
59
60cd $1
61
62echo Removing backup files...
63rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
64
65rm -f $2/wxX11-${WXVER}*.tar.gz
66rm -f $2/wxX11-${WXVER}
67
68### wxX11: combined wxMotif and wxX11 distributions
69cd $1
1cb14841 70cat $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
2b5f62a0
VZ
71expandlines /tmp/wxx11_in.txt /tmp/wxx11.txt
72$TAR cf $2/wxX11-${WXVER}.tar -T /tmp/wxx11.txt
73
74echo Re-tarring wxX11 in a subdirectory...
75cd $2
76mkdir wxX11-${WXVER}
77cd wxX11-${WXVER}
78$TAR xf ../wxX11-${WXVER}.tar
79cd ..
80rm -f wxX11-${WXVER}.tar
81$TAR cf $2/wxX11-${WXVER}.tar wxX11-${WXVER}/*
82rm -f -r wxX11-${WXVER}
83gzip $2/wxX11-${WXVER}.tar
84
85