]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tardist
Fixed some warnings (don't know why dialoged Makefile is being committed)
[wxWidgets.git] / distrib / msw / tardist
CommitLineData
33b64e6f
JS
1#!/bin/sh
2# tardist: make up a tar.gz distribution of wxWindows 2
3# Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
4
7a5e6267
JS
5# We can't use e.g. this:
6# ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWindows-$VERSION-gen.zip
7# because there's not enough space on the command line, plus we need to ignore the
8# blank lines.
9
10expandlines()
11{
12 toexpand=$1
13 outputfile=$2
14
15 rm -f $outputfile
16 touch $outputfile
17 for line in `cat $toexpand` ; do
18 if [ $line != "" ]; then
19 ls $line >> $outputfile
20 fi
21 done
22}
23
24
33b64e6f 25init=""
7a5e6267 26WXVER=2.2.0
33b64e6f
JS
27if [ $1 = "" ]
28then
29 exit
30fi
31
32if [ $2 = "" ]
33then
34 exit
35fi
36
37echo About to archive wxWindows:
38echo From $1
39echo To $2
40echo CTRL-C if this is not correct.
41read dummy
42
43cd $1
44
45echo Removing backup files...
46rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
47
f6bcfd97 48rm -f $2/wx${WXVER}*.tgz
b69f1bd1
JS
49rm -f $2/tex2rtf2.tgz
50rm -f $2/ogl3.tgz
75737d05 51rm -f $2/jpeg.tgz
f6bcfd97 52rm -f $2/tiff.tgz
33b64e6f
JS
53
54echo Tarring...
55
b69f1bd1 56### Generic
f5ee2e5f 57ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgen.txt
f6bcfd97
BP
58tar cvf $2/wx${WXVER}gen.tar -T /tmp/wxgen.txt
59gzip $2/wx${WXVER}gen.tar
60mv $2/wx${WXVER}gen.tar.gz $2/wx${WXVER}gen.tgz
b69f1bd1 61
33b64e6f 62### wxGTK
f5ee2e5f 63ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/gtk.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgtk.txt
f6bcfd97
BP
64tar cvf $2/wx${WXVER}gtk.tar -T /tmp/wxgtk.txt
65gzip $2/wx${WXVER}gtk.tar
66mv $2/wx${WXVER}gtk.tar.gz $2/wx${WXVER}gtk.tgz
33b64e6f
JS
67
68### wxMotif
f5ee2e5f 69ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxmotif.txt
f6bcfd97
BP
70tar cvf $2/wx${WXVER}mot.tar -T /tmp/wxmotif.txt
71gzip $2/wx${WXVER}mot.tar
72mv $2/wx${WXVER}mot.tar.gz $2/wx${WXVER}mot.tgz
33b64e6f
JS
73
74### Doc sources
75ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt
f6bcfd97
BP
76tar cvf $2/wx${WXVER}doc.tar -T /tmp/docsrc.txt
77gzip $2/wx${WXVER}doc.tar
78mv $2/wx${WXVER}doc.tar.gz $2/wx${WXVER}doc.tgz
33b64e6f
JS
79
80### HTML docs
81ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
f6bcfd97
BP
82tar cvf $2/wx${WXVER}htm.tar -T /tmp/html.txt
83gzip $2/wx${WXVER}htm.tar
84mv $2/wx${WXVER}htm.tar.gz $2/wx${WXVER}htm.tgz
33b64e6f
JS
85
86### PDF docs
87ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
f6bcfd97
BP
88tar cvf $2/wx${WXVER}pdf.tar -T /tmp/pdf.txt
89gzip $2/wx${WXVER}pdf.tar
90mv $2/wx${WXVER}pdf.tar.gz $2/wx${WXVER}pdf.tgz
33b64e6f
JS
91
92### Stubs files
93ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
f6bcfd97
BP
94tar cvf $2/wx${WXVER}stubs.tar -T /tmp/stubs.txt
95gzip $2/wx${WXVER}stubs.tar
96mv $2/wx${WXVER}stubs.tar.gz $2/wx${WXVER}stubs.tgz
33b64e6f
JS
97
98### Tex2RTF
99ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
b69f1bd1
JS
100tar cvf $2/tex2rtf2.tar -T /tmp/tex2rtf.txt
101gzip $2/tex2rtf2.tar
102mv $2/tex2rtf2.tar.gz $2/tex2rtf2.tgz
33b64e6f
JS
103
104### OGL
105ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
b69f1bd1
JS
106tar cvf $2/ogl3.tar -T /tmp/ogl.txt
107gzip $2/ogl3.tar
108mv $2/ogl3.tar.gz $2/ogl3.tgz
33b64e6f 109
75737d05
JS
110### JPEG
111ls `cat $1/distrib/msw/jpeg.rsp` > /tmp/jpeg.txt
112tar cvf $2/jpeg.tar -T /tmp/jpeg.txt
113gzip $2/jpeg.tar
114mv $2/jpeg.tar.gz $2/jpeg.tgz
115
f6bcfd97
BP
116### TIFF
117ls `cat $1/distrib/msw/tiff.rsp` > /tmp/tiff.txt
118tar cvf $2/tiff.tar -T /tmp/tiff.txt
119gzip $2/tiff.tar
120mv $2/tiff.tar.gz $2/tiff.tgz
121
33b64e6f 122echo Done!