]>
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 | ||
d7dcb939 JS |
57 | rm -f $2/wx*-${WXVER}*.tgz |
58 | rm -f $2/tex2rtf2-*.tgz | |
59 | rm -f $2/dialoged-*.tgz | |
60 | rm -f $2/ogl3-*.tgz | |
61 | rm -f $2/jpeg-*.tgz | |
62 | rm -f $2/tiff-*.tgz | |
63 | rm -f $2/stc-*.tgz | |
64 | rm -f $2/canvas-*.tgz | |
65 | rm -f $2/contrib-*.tgz | |
66 | rm -f $2/applet-*.tgz | |
b9e5acef | 67 | rm -f $2/wxxrc-*.tgz |
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 | |
81 | mv $2/wxGTK-${WXVER}.tar.gz $2/wxGTK-${WXVER}.tgz | |
33b64e6f JS |
82 | |
83 | ### wxMotif | |
9806a0e7 | 84 | 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 | 85 | tar cvf $2/wxMotif-${WXVER}.tar -T /tmp/wxmotif.txt |
d7dcb939 JS |
86 | gzip $2/wxMotif-${WXVER}.tar |
87 | mv $2/wxMotif-${WXVER}.tar.gz $2/wxMotif-${WXVER}.tgz | |
33b64e6f | 88 | |
13bf613e | 89 | ### wxMSW |
d7dcb939 JS |
90 | 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 |
91 | tar cvf $2/wxMSW-${WXVER}.tar -T /tmp/wxmsw.txt | |
92 | gzip $2/wxMSW-${WXVER}.tar | |
93 | mv $2/wxMSW-${WXVER}.tar.gz $2/wxMSW-${WXVER}.tgz | |
13bf613e | 94 | |
33b64e6f JS |
95 | ### Doc sources |
96 | ls `cat $1/distrib/msw/docsrc.rsp` > /tmp/docsrc.txt | |
84c9e2f8 JS |
97 | tar cvf $2/wxWindows-${WXVER}-doc.tar -T /tmp/docsrc.txt |
98 | gzip $2/wxWindows-${WXVER}-doc.tar | |
99 | mv $2/wxWindows-${WXVER}-doc.tar.gz $2/wxWindows-${WXVER}-doc.tgz | |
33b64e6f JS |
100 | |
101 | ### HTML docs | |
102 | ls `cat $1/distrib/msw/wx_html.rsp` > /tmp/html.txt | |
84c9e2f8 JS |
103 | tar cvf $2/wxWindows-${WXVER}-htm.tar -T /tmp/html.txt |
104 | gzip $2/wxWindows-${WXVER}-htm.tar | |
105 | mv $2/wxWindows-${WXVER}-htm.tar.gz $2/wxWindows-${WXVER}-htm.tgz | |
33b64e6f JS |
106 | |
107 | ### PDF docs | |
108 | ls `cat $1/distrib/msw/wx_pdf.rsp` > /tmp/pdf.txt | |
84c9e2f8 JS |
109 | tar cvf $2/wxWindows-${WXVER}-pdf.tar -T /tmp/pdf.txt |
110 | gzip $2/wxWindows-${WXVER}-pdf.tar | |
111 | mv $2/wxWindows-${WXVER}-pdf.tar.gz $2/wxWindows-${WXVER}-pdf.tgz | |
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 | |
117 | #mv $2/wxWindows-${WXVER}-stubs.tar.gz $2/wxWindows-${WXVER}-stubs.tgz | |
33b64e6f JS |
118 | |
119 | ### Tex2RTF | |
120 | ls `cat $1/distrib/msw/tex2rtf.rsp` > /tmp/tex2rtf.txt | |
d7dcb939 JS |
121 | tar cvf $2/tex2rtf2-${WXVER}.tar -T /tmp/tex2rtf.txt |
122 | gzip $2/tex2rtf2-${WXVER}.tar | |
123 | mv $2/tex2rtf2-${WXVER}.tar.gz $2/tex2rtf2-${WXVER}.tgz | |
33b64e6f JS |
124 | |
125 | ### OGL | |
126 | ls `cat $1/distrib/msw/ogl.rsp` > /tmp/ogl.txt | |
d7dcb939 JS |
127 | tar cvf $2/ogl3-${WXVER}.tar -T /tmp/ogl.txt |
128 | gzip $2/ogl3-${WXVER}.tar | |
129 | mv $2/ogl3-${WXVER}.tar.gz $2/ogl3-${WXVER}.tgz | |
33b64e6f | 130 | |
75737d05 JS |
131 | ### JPEG |
132 | ls `cat $1/distrib/msw/jpeg.rsp` > /tmp/jpeg.txt | |
d7dcb939 JS |
133 | tar cvf $2/jpeg-${WXVER}.tar -T /tmp/jpeg.txt |
134 | gzip $2/jpeg-${WXVER}.tar | |
135 | mv $2/jpeg-${WXVER}.tar.gz $2/jpeg-${WXVER}.tgz | |
75737d05 | 136 | |
f6bcfd97 BP |
137 | ### TIFF |
138 | ls `cat $1/distrib/msw/tiff.rsp` > /tmp/tiff.txt | |
d7dcb939 JS |
139 | tar cvf $2/tiff-${WXVER}.tar -T /tmp/tiff.txt |
140 | gzip $2/tiff-${WXVER}.tar | |
141 | mv $2/tiff-${WXVER}.tar.gz $2/tiff-${WXVER}.tgz | |
f6bcfd97 | 142 | |
33b64e6f | 143 | echo Done! |