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