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