]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tardist
not necessary anymore
[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
332b8edb
JS
10TAR=tar
11ARCH=`arch`
12if [ "$ARCH" = "ppc" ]; then
13 TAR=gnutar
14fi
15
7a5e6267
JS
16expandlines()
17{
18 toexpand=$1
19 outputfile=$2
20
21 rm -f $outputfile
22 touch $outputfile
23 for line in `cat $toexpand` ; do
84c9e2f8 24 if [ "$line" != "" ]; then
7a5e6267
JS
25 ls $line >> $outputfile
26 fi
8f8edad8
JS
27 uniq < $outputfile > /tmp/uniqtemp.txt
28 mv /tmp/uniqtemp.txt $outputfile
7a5e6267
JS
29 done
30}
31
32
33b64e6f 33init=""
84c9e2f8 34if [ "$1" = "" ]
33b64e6f 35then
84c9e2f8 36 echo Usage: tardist wx-dir output-dir version
33b64e6f
JS
37 exit
38fi
39
84c9e2f8 40if [ "$2" = "" ]
33b64e6f 41then
84c9e2f8 42 echo Usage: tardist wx-dir output-dir version
33b64e6f
JS
43 exit
44fi
45
84c9e2f8
JS
46if [ "$3" = "" ]
47then
48 echo Usage: tardist wx-dir output-dir version
49 exit
50fi
51
52WXVER=$3
53
33b64e6f
JS
54echo About to archive wxWindows:
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
2c7b88e6 65rm -f $2/wx*-${WXVER}*.tar.gz
33b64e6f
JS
66
67echo Tarring...
68
b69f1bd1 69### Generic
94d86127
JS
70#cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp > /tmp/wxgen_in.txt
71#expandlines /tmp/wxgen_in.txt /tmp/wxgen.txt
72#$TAR cf $2/wxWindows-${WXVER}-gen.tar -T /tmp/wxgen.txt
73#gzip $2/wxWindows-${WXVER}-gen.tar
74#mv $2/wxWindows-${WXVER}-gen.tar.gz $2/wxWindows-${WXVER}-gen.tgz
b69f1bd1 75
33b64e6f 76### wxGTK
94d86127 77cd $1
332b8edb 78cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/utils.rsp $1/distrib/msw/ogl.rsp $1/distrib/msw/tex2rtf.rsp $1/distrib/msw/dialoged.rsp $1/distrib/msw/gtk.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp > /tmp/wxgtk_in.txt
8f8edad8 79expandlines /tmp/wxgtk_in.txt /tmp/wxgtk.txt
332b8edb
JS
80$TAR cf $2/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt
81
82echo Re-tarring wxGTK in a subdirectory...
83cd $2
84mkdir wxWindows-${WXVER}
85cd wxWindows-${WXVER}
86$TAR xf ../wxGTK-${WXVER}.tar
87cd ..
88rm -f wxGTK-${WXVER}.tar
89$TAR cf $2/wxGTK-${WXVER}.tar wxWindows-${WXVER}/*
90rm -f -r wxWindows-${WXVER}
d7dcb939 91gzip $2/wxGTK-${WXVER}.tar
33b64e6f
JS
92
93### wxMotif
d7ada452 94cd $1
8f8edad8
JS
95cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/contrib.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/wxmotif_in.txt
96expandlines /tmp/wxmotif_in.txt /tmp/wxmotif.txt
332b8edb
JS
97$TAR cf $2/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt
98
99echo Re-tarring wxMotif in a subdirectory...
100cd $2
101mkdir wxWindows-${WXVER}
102cd wxWindows-${WXVER}
103$TAR xf ../wxMotif-${WXVER}.tar
104cd ..
105rm -f wxMotif-${WXVER}.tar
106$TAR cf $2/wxMotif-${WXVER}.tar wxWindows-${WXVER}/*
107rm -f -r wxWindows-${WXVER}
d7dcb939 108gzip $2/wxMotif-${WXVER}.tar
33b64e6f 109
4869c7db 110### wxX11: combined wxMotif and wxX11 distributions
d7ada452 111cd $1
8f8edad8
JS
112cat $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/utils.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/dialoged.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
113expandlines /tmp/wxx11_in.txt /tmp/wxx11.txt
332b8edb
JS
114$TAR cf $2/wxX11-${WXVER}.tar -T /tmp/wxx11.txt
115
116echo Re-tarring wxX11 in a subdirectory...
117cd $2
118mkdir wxWindows-${WXVER}
119cd wxWindows-${WXVER}
120$TAR xf ../wxX11-${WXVER}.tar
121cd ..
122rm -f wxX11-${WXVER}.tar
123$TAR cf $2/wxX11-${WXVER}.tar wxWindows-${WXVER}/*
124rm -f -r wxWindows-${WXVER}
2c7b88e6 125gzip $2/wxX11-${WXVER}.tar
c2ff68d3 126
13bf613e 127### wxMSW
d7ada452 128# cd $1
8f8edad8
JS
129# cat $1/distrib/msw/msw.rsp $1/distrib/msw/vc.rsp $1/distrib/msw/bc.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp > /tmp/wxmsw_in.txt
130# expandlines /tmp/wxmsw_in.txt /tmp/wxmsw.txt
332b8edb 131# $TAR cf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt
4869c7db 132# gzip $2/wxMSW-${WXVER}.tar
13bf613e 133
38be1092 134### wxMac
d7ada452 135cd $1
dba860d9 136cat $1/distrib/msw/mac.rsp $1/distrib/msw/generic.rsp $1/distrib/msw/cw.rsp $1/distrib/msw/tex2rtf.rsp $1/distrib/msw/utils.rsp $1/distrib/msw/dialoged.rsp $1/distrib/msw/ogl.rsp $1/distrib/msw/stc.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp > /tmp/wxmac_in.txt
8f8edad8 137expandlines /tmp/wxmac_in.txt /tmp/wxmac.txt
332b8edb
JS
138$TAR cf $2/wxMac-${WXVER}.tar -T /tmp/wxmac.txt
139
140echo Re-tarring wxMac in a subdirectory...
141cd $2
142mkdir wxWindows-${WXVER}
143cd wxWindows-${WXVER}
144$TAR xf ../wxMac-${WXVER}.tar
94d86127 145rm -f -r contrib/src/mmedia contrib/samples/mmedia
332b8edb
JS
146cd ..
147rm -f wxMac-${WXVER}.tar
148$TAR cf $2/wxMac-${WXVER}.tar wxWindows-${WXVER}/*
149rm -f -r wxWindows-${WXVER}
38be1092
JS
150gzip $2/wxMac-${WXVER}.tar
151
33b64e6f 152### Doc sources
94d86127
JS
153#cd $1
154#cat $1/distrib/msw/docsrc.rsp > /tmp/docsrc_in.txt
155#expandlines /tmp/docsrc_in.txt /tmp/docsrc.txt
156#$TAR cf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt
157#
158#echo Re-tarring docs in a subdirectory...
159#cd $2
160#mkdir wxWindows-${WXVER}
161#cd wxWindows-${WXVER}
162#$TAR xf ../wxWindows-${WXVER}-doc.tar
163#cd ..
164#rm -f wxWindows-${WXVER}-doc.tar
165#$TAR cf $2/wxWindows-${WXVER}-doc.tar wxWindows-${WXVER}/*
166#rm -f -r wxWindows-${WXVER}
167#gzip $2/wxWindows-${WXVER}-doc.tar
33b64e6f
JS
168
169### HTML docs
d7ada452 170cd $1
8f8edad8
JS
171cat $1/distrib/msw/wx_html.rsp > /tmp/html_in.txt
172expandlines /tmp/html_in.txt /tmp/html.txt
e492150d 173$TAR cf $2/wxWindows-${WXVER}-HTML.tar -T /tmp/html.txt
332b8edb
JS
174
175echo Re-tarring HTML in a subdirectory...
176cd $2
177mkdir wxWindows-${WXVER}
178cd wxWindows-${WXVER}
e492150d 179$TAR xf ../wxWindows-${WXVER}-HTML.tar
332b8edb 180cd ..
e492150d
JS
181rm -f wxWindows-${WXVER}-HTML.tar
182$TAR cf $2/wxWindows-${WXVER}-HTML.tar wxWindows-${WXVER}/*
332b8edb 183rm -f -r wxWindows-${WXVER}
e492150d 184gzip $2/wxWindows-${WXVER}-HTML.tar
33b64e6f 185
94d86127
JS
186### HTB docs
187cd $1
188cat $1/distrib/msw/wx_htb.rsp > /tmp/htb_in.txt
189expandlines /tmp/htb_in.txt /tmp/htb.txt
e492150d 190$TAR cf $2/wxWindows-${WXVER}-HTB.tar -T /tmp/htb.txt
94d86127
JS
191
192echo Re-tarring HTB in a subdirectory...
193cd $2
194mkdir wxWindows-${WXVER}
195cd wxWindows-${WXVER}
e492150d 196$TAR xf ../wxWindows-${WXVER}-HTB.tar
94d86127 197cd ..
e492150d
JS
198rm -f wxWindows-${WXVER}-HTB.tar
199$TAR cf $2/wxWindows-${WXVER}-HTB.tar wxWindows-${WXVER}/*
94d86127 200rm -f -r wxWindows-${WXVER}
e492150d 201gzip $2/wxWindows-${WXVER}-HTB.tar
94d86127 202
33b64e6f 203### PDF docs
d7ada452 204cd $1
8f8edad8
JS
205cat $1/distrib/msw/wx_pdf.rsp > /tmp/pdf_in.txt
206expandlines /tmp/pdf_in.txt /tmp/pdf.txt
e492150d 207$TAR cf $2/wxWindows-${WXVER}-PDF.tar -T /tmp/pdf.txt
332b8edb
JS
208
209echo Re-tarring PDF in a subdirectory...
210cd $2
211mkdir wxWindows-${WXVER}
212cd wxWindows-${WXVER}
e492150d 213$TAR xf ../wxWindows-${WXVER}-PDF.tar
332b8edb 214cd ..
e492150d
JS
215rm -f wxWindows-${WXVER}-PDF.tar
216$TAR cf $2/wxWindows-${WXVER}-PDF.tar wxWindows-${WXVER}/*
332b8edb 217rm -f -r wxWindows-${WXVER}
e492150d 218gzip $2/wxWindows-${WXVER}-PDF.tar
33b64e6f 219
33b64e6f 220### Tex2RTF
94d86127
JS
221#cd $1
222#cat $1/distrib/msw/tex2rtf.rsp > /tmp/tex2rtf_in.txt
223#expandlines /tmp/tex2rtf_in.txt /tmp/tex2rtf.txt
224#$TAR cf $2/wxWindows-${WXVER}-tex2rtf.tar -T /tmp/tex2rtf.txt
225#
226#echo Re-tarring Tex2RTF in a subdirectory...
227#cd $2
228#mkdir wxWindows-${WXVER}
229#cd wxWindows-${WXVER}
230#$TAR xf ../wxWindows-${WXVER}-tex2rtf.tar
231#cd ..
232#rm -f wxWindows-${WXVER}-tex2rtf.tar
233#$TAR cf $2/wxWindows-${WXVER}-tex2rtf.tar wxWindows-${WXVER}/*
234#rm -f -r wxWindows-${WXVER}
235#gzip $2/wxWindows-${WXVER}-tex2rtf.tar
33b64e6f
JS
236
237### OGL
94d86127
JS
238#cd $1
239#cat $1/distrib/msw/ogl.rsp > /tmp/ogl_in.txt
240#expandlines /tmp/ogl_in.txt /tmp/ogl.txt
241#$TAR cf $2/wxWindows-${WXVER}-ogl.tar -T /tmp/ogl.txt
242#
243#echo Re-tarring OGL in a subdirectory...
244#cd $2
245#mkdir wxWindows-${WXVER}
246#cd wxWindows-${WXVER}
247#$TAR xf ../wxWindows-${WXVER}-ogl.tar
248#cd ..
249#rm -f wxWindows-${WXVER}-ogl.tar
250#$TAR cf $2/wxWindows-${WXVER}-ogl.tar wxWindows-${WXVER}/*
251#rm -f -r wxWindows-${WXVER}
252#gzip $2/wxWindows-${WXVER}-ogl.tar
33b64e6f 253
75737d05 254### JPEG
94d86127
JS
255#cd $1
256#cat $1/distrib/msw/jpeg.rsp > /tmp/jpeg_in.txt
257#expandlines /tmp/jpeg_in.txt /tmp/jpeg.txt
258#$TAR cf $2/wxWindows-${WXVER}-jpeg.tar -T /tmp/jpeg.txt
259#
260#echo Re-tarring jpeg in a subdirectory...
261#cd $2
262#mkdir wxWindows-${WXVER}
263#cd wxWindows-${WXVER}
264#$TAR xf ../wxWindows-${WXVER}-jpeg.tar
265#cd ..
266#rm -f wxWindows-${WXVER}-jpeg.tar
267#$TAR cf $2/wxWindows-${WXVER}-jpeg.tar wxWindows-${WXVER}/*
268#rm -f -r wxWindows-${WXVER}
269#gzip $2/wxWindows-${WXVER}-jpeg.tar
75737d05 270
f6bcfd97 271### TIFF
94d86127
JS
272#cd $1
273#cat $1/distrib/msw/tiff.rsp > /tmp/tiff_in.txt
274#expandlines /tmp/tiff_in.txt /tmp/tiff.txt
275#$TAR cf $2/wxWindows-${WXVER}-tiff.tar -T /tmp/tiff.txt
276#
277#echo Re-tarring docs in a subdirectory...
278#cd $2
279#mkdir wxWindows-${WXVER}
280#cd wxWindows-${WXVER}
281#$TAR xf ../wxWindows-${WXVER}-tiff.tar
282#cd ..
283#rm -f wxWindows-${WXVER}-tiff.tar
284#$TAR cf $2/wxWindows-${WXVER}-tiff.tar wxWindows-${WXVER}/*
285#rm -f -r wxWindows-${WXVER}
286#gzip $2/wxWindows-${WXVER}-tiff.tar
2c7b88e6
JS
287
288# Copy readme and other files
d7ada452 289cd $1
4869c7db
JS
290cp $1/docs/readme.txt $2/readme-${WXVER}.txt
291cp $1/docs/changes.txt $2/changes-${WXVER}.txt
332b8edb
JS
292cp $1/docs/mgl/readme.txt $2/readme-mgl-${WXVER}.txt
293cp $1/docs/mgl/install.txt $2/install-mgl-${WXVER}.txt
294cp $1/docs/x11/readme.txt $2/readme-x11-${WXVER}.txt
295cp $1/docs/x11/readme-nanox.txt $2/readme-nanox-${WXVER}.txt
296cp $1/docs/x11/install.txt $2/install-x11-${WXVER}.txt
297cp $1/docs/motif/readme.txt $2/readme-motif-${WXVER}.txt
298cp $1/docs/motif/install.txt $2/install-motif-${WXVER}.txt
299cp $1/docs/msw/readme.txt $2/readme-msw-${WXVER}.txt
300cp $1/docs/msw/install.txt $2/install-msw-${WXVER}.txt
301cp $1/docs/gtk/readme.txt $2/readme-gtk-${WXVER}.txt
302cp $1/docs/gtk/install.txt $2/install-gtk-${WXVER}.txt
303cp $1/docs/mac/readme.txt $2/readme-mac-${WXVER}.txt
304cp $1/docs/mac/install.txt $2/install-mac-${WXVER}.txt
305cp $1/docs/os2/install.txt $2/install-os2-${WXVER}.txt
f6bcfd97 306
33b64e6f 307echo Done!