]>
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 | ||
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 | ||
10 | expandlines() | |
11 | { | |
12 | toexpand=$1 | |
13 | outputfile=$2 | |
14 | ||
15 | rm -f $outputfile | |
16 | touch $outputfile | |
17 | for line in `cat $toexpand` ; do | |
84c9e2f8 | 18 | if [ "$line" != "" ]; then |
7a5e6267 JS |
19 | ls $line >> $outputfile |
20 | fi | |
21 | done | |
22 | } | |
23 | ||
24 | ||
33b64e6f | 25 | init="" |
84c9e2f8 | 26 | if [ "$1" = "" ] |
33b64e6f | 27 | then |
84c9e2f8 | 28 | echo Usage: tardist wx-dir output-dir version |
33b64e6f JS |
29 | exit |
30 | fi | |
31 | ||
84c9e2f8 | 32 | if [ "$2" = "" ] |
33b64e6f | 33 | then |
84c9e2f8 | 34 | echo Usage: tardist wx-dir output-dir version |
33b64e6f JS |
35 | exit |
36 | fi | |
37 | ||
84c9e2f8 JS |
38 | if [ "$3" = "" ] |
39 | then | |
40 | echo Usage: tardist wx-dir output-dir version | |
41 | exit | |
42 | fi | |
43 | ||
44 | WXVER=$3 | |
45 | ||
33b64e6f JS |
46 | echo About to archive wxWindows: |
47 | echo From $1 | |
48 | echo To $2 | |
49 | echo CTRL-C if this is not correct. | |
50 | read dummy | |
51 | ||
52 | cd $1 | |
53 | ||
54 | echo Removing backup files... | |
55 | rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~ | |
56 | ||
2c7b88e6 JS |
57 | rm -f $2/wx*-${WXVER}*.tar.gz |
58 | rm -f $2/tex2rtf2-*.tar.gz | |
59 | rm -f $2/dialoged-*.tar.gz | |
60 | rm -f $2/ogl3-*.tar.gz | |
61 | rm -f $2/jpeg-*.tar.gz | |
62 | rm -f $2/tiff-*.tar.gz | |
63 | rm -f $2/stc-*.tar.gz | |
64 | rm -f $2/canvas-*.tar.gz | |
65 | rm -f $2/contrib-*.tar.gz | |
66 | rm -f $2/applet-*.tar.gz | |
67 | rm -f $2/wxxrc-*.tar.gz | |
33b64e6f JS |
68 | |
69 | echo Tarring... | |
70 | ||
b69f1bd1 | 71 | ### Generic |
13bf613e | 72 | ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/makefile.rsp` > /tmp/wxgen.txt |
84c9e2f8 JS |
73 | tar cvf $2/wxWindows-${WXVER}-gen.tar -T /tmp/wxgen.txt |
74 | gzip $2/wxWindows-${WXVER}-gen.tar | |
75 | mv $2/wxWindows-${WXVER}-gen.tar.gz $2/wxWindows-${WXVER}-gen.tgz | |
b69f1bd1 | 76 | |
33b64e6f | 77 | ### wxGTK |
d7dcb939 JS |
78 | ls `cat $1/distrib/msw/generic.rsp $1/distrib/msw/contrib.rsp $1/distrib/msw/xml.rsp $1/distrib/msw/gtk.rsp $1/distrib/msw/makefile.rsp $1/distrib/msw/tiff.rsp $1/distrib/msw/jpeg.rsp` > /tmp/wxgtk.txt |
79 | tar cvf $2/wxGTK-${WXVER}.tar -T /tmp/wxgtk.txt | |
80 | gzip $2/wxGTK-${WXVER}.tar | |
33b64e6f JS |
81 | |
82 | ### wxMotif | |
9806a0e7 | 83 | ls `cat $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.txt |
da7ed9b7 | 84 | tar cvf $2/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt |
d7dcb939 | 85 | gzip $2/wxMotif-${WXVER}.tar |
33b64e6f | 86 | |
4869c7db JS |
87 | ### wxX11: combined wxMotif and wxX11 distributions |
88 | ls `cat $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` | uniq > /tmp/wxx.txt | |
89 | ls `cat $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` | uniq >> /tmp/wxx.txt | |
2c7b88e6 JS |
90 | tar cvf $2/wxX11-${WXVER}.tar -T /tmp/wxx.txt |
91 | gzip $2/wxX11-${WXVER}.tar | |
c2ff68d3 | 92 | |
13bf613e | 93 | ### wxMSW |
4869c7db JS |
94 | # ls `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.txt |
95 | # tar cvf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt | |
96 | # gzip $2/wxMSW-${WXVER}.tar | |
13bf613e | 97 | |
33b64e6f JS |
98 | ### Doc sources |
99 | ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt | |
84c9e2f8 JS |
100 | tar cvf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt |
101 | gzip $2/wxWindows-${WXVER}-doc.tar | |
33b64e6f JS |
102 | |
103 | ### HTML docs | |
104 | ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt | |
84c9e2f8 JS |
105 | tar cvf $2/wxWindows-${WXVER}-htm.tar -T /tmp/html.txt |
106 | gzip $2/wxWindows-${WXVER}-htm.tar | |
33b64e6f JS |
107 | |
108 | ### PDF docs | |
109 | ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt | |
84c9e2f8 JS |
110 | tar cvf $2/wxWindows-${WXVER}-pdf.tar -T /tmp/pdf.txt |
111 | gzip $2/wxWindows-${WXVER}-pdf.tar | |
33b64e6f JS |
112 | |
113 | ### Stubs files | |
d7dcb939 JS |
114 | #ls `cat $1/distrib/msw/stubs.rsp` > /tmp/stubs.txt |
115 | #tar cvf $2/wxWindows-${WXVER}-stubs.tar -T /tmp/stubs.txt | |
116 | #gzip $2/wxWindows-${WXVER}-stubs.tar | |
33b64e6f JS |
117 | |
118 | ### Tex2RTF | |
119 | ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt | |
d7dcb939 JS |
120 | tar cvf $2/tex2rtf2-${WXVER}.tar -T /tmp/tex2rtf.txt |
121 | gzip $2/tex2rtf2-${WXVER}.tar | |
33b64e6f JS |
122 | |
123 | ### OGL | |
124 | ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt | |
d7dcb939 JS |
125 | tar cvf $2/ogl3-${WXVER}.tar -T /tmp/ogl.txt |
126 | gzip $2/ogl3-${WXVER}.tar | |
33b64e6f | 127 | |
75737d05 JS |
128 | ### JPEG |
129 | ls `cat $1/distrib/msw/jpeg.rsp` > /tmp/jpeg.txt | |
d7dcb939 JS |
130 | tar cvf $2/jpeg-${WXVER}.tar -T /tmp/jpeg.txt |
131 | gzip $2/jpeg-${WXVER}.tar | |
75737d05 | 132 | |
f6bcfd97 BP |
133 | ### TIFF |
134 | ls `cat $1/distrib/msw/tiff.rsp` > /tmp/tiff.txt | |
d7dcb939 JS |
135 | tar cvf $2/tiff-${WXVER}.tar -T /tmp/tiff.txt |
136 | gzip $2/tiff-${WXVER}.tar | |
2c7b88e6 JS |
137 | |
138 | # Copy readme and other files | |
4869c7db JS |
139 | cp $1/docs/readme.txt $2/readme-${WXVER}.txt |
140 | cp $1/docs/changes.txt $2/changes-${WXVER}.txt | |
141 | cp $1/docs/mgl/readme.txt $2/readme_mgl-${WXVER}.txt | |
142 | cp $1/docs/mgl/install.txt $2/install_mgl-${WXVER}.txt | |
143 | cp $1/docs/x11/readme.txt $2/readme_x11-${WXVER}.txt | |
144 | cp $1/docs/x11/readme-nanox.txt $2/readme_nanox-${WXVER}.txt | |
145 | cp $1/docs/x11/install.txt $2/install_x11-${WXVER}.txt | |
146 | cp $1/docs/motif/readme.txt $2/readme_motif-${WXVER}.txt | |
147 | cp $1/docs/motif/install.txt $2/install_motif-${WXVER}.txt | |
148 | cp $1/docs/msw/readme.txt $2/readme_msw-${WXVER}.txt | |
149 | cp $1/docs/msw/install.txt $2/install_msw-${WXVER}.txt | |
150 | cp $1/docs/gtk/readme.txt $2/readme_gtk-${WXVER}.txt | |
151 | cp $1/docs/gtk/install.txt $2/install_gtk-${WXVER}.txt | |
152 | cp $1/docs/mac/readme.txt $2/readme_mac-${WXVER}.txt | |
153 | cp $1/docs/mac/install.txt $2/install_mac-${WXVER}.txt | |
f6bcfd97 | 154 | |
33b64e6f | 155 | echo Done! |