]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tardist
Fixed wxExecute() to handle filenames with spaces and quoted arguments.
[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
5init=""
6if [ $1 = "" ]
7then
8 exit
9fi
10
11if [ $2 = "" ]
12then
13 exit
14fi
15
16echo About to archive wxWindows:
17echo From $1
18echo To $2
19echo CTRL-C if this is not correct.
20read dummy
21
22cd $1
23
24echo Removing backup files...
25rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
26
b69f1bd1
JS
27rm -f $2/wx200*.tgz
28rm -f $2/tex2rtf2.tgz
29rm -f $2/ogl3.tgz
30rm -f $2/treedraw.tar.gz
33b64e6f
JS
31rm -f $2/glcanvas.tar.gz
32
33echo Tarring...
34
b69f1bd1 35### Generic
f5ee2e5f 36ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgen.txt
b69f1bd1
JS
37tar cvf $2/wx200gen.tar -T /tmp/wxgen.txt
38gzip $2/wx200gen.tar
39mv $2/wx200gen.tar.gz $2/wx200gen.tgz
40
33b64e6f 41### wxGTK
f5ee2e5f 42ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/gtk.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgtk.txt
b69f1bd1
JS
43tar cvf $2/wx200gtk.tar -T /tmp/wxgtk.txt
44gzip $2/wx200gtk.tar
45mv $2/wx200gtk.tar.gz $2/wx200gtk.tgz
33b64e6f
JS
46
47### wxMotif
f5ee2e5f 48ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/motif.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxmotif.txt
b69f1bd1
JS
49tar cvf $2/wx200mot.tar -T /tmp/wxmotif.txt
50gzip $2/wx200mot.tar
51mv $2/wx200mot.tar.gz $2/wx200mot.tgz
33b64e6f
JS
52
53### Doc sources
54ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt
b69f1bd1
JS
55tar cvf $2/wx200doc.tar -T /tmp/docsrc.txt
56gzip $2/wx200doc.tar
57mv $2/wx200doc.tar.gz $2/wx200doc.tgz
33b64e6f
JS
58
59### HTML docs
60ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt
b69f1bd1
JS
61tar cvf $2/wx200htm.tar -T /tmp/html.txt
62gzip $2/wx200htm.tar
63mv $2/wx200htm.tar.gz $2/wx200htm.tgz
33b64e6f
JS
64
65### PDF docs
66ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt
b69f1bd1
JS
67tar cvf $2/wx200pdf.tar -T /tmp/pdf.txt
68gzip $2/wx200pdf.tar
69mv $2/wx200pdf.tar.gz $2/wx200pdf.tgz
33b64e6f
JS
70
71### Stubs files
72ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt
b69f1bd1
JS
73tar cvf $2/wx200stubs.tar -T /tmp/stubs.txt
74gzip $2/wx200stubs.tar
75mv $2/wx200stubs.tar.gz $2/wx200stubs.tgz
33b64e6f
JS
76
77### Tex2RTF
78ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt
b69f1bd1
JS
79tar cvf $2/tex2rtf2.tar -T /tmp/tex2rtf.txt
80gzip $2/tex2rtf2.tar
81mv $2/tex2rtf2.tar.gz $2/tex2rtf2.tgz
33b64e6f
JS
82
83### OGL
84ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt
b69f1bd1
JS
85tar cvf $2/ogl3.tar -T /tmp/ogl.txt
86gzip $2/ogl3.tar
87mv $2/ogl3.tar.gz $2/ogl3.tgz
33b64e6f
JS
88
89### wxGLCanvas
90ls `cat $1/distrib/msw/glcanvas.rsp` > /tmp/glcanvas.txt
91tar cvf $2/glcanvas.tar -T /tmp/glcanvas.txt
92gzip $2/glcanvas.tar
93mv $2/glcanvas.tar.gz $2/glcanvas.tgz
94
95### wxTreeLayout
96ls `cat $1/distrib/msw/wxtree.rsp` > /tmp/wxtree.txt
b69f1bd1
JS
97tar cvf $2/treedraw.tar -T /tmp/wxtree.txt
98gzip $2/treedraw.tar
99mv $2/treedraw.tar.gz $2/treedraw.tgz
33b64e6f
JS
100
101echo Done!