2 # Makes the wxWidgets tarballs with 'make dist'
7 echo Updating from CVS...
13 echo Making wxGTK tarballs...
15 if [ ! -d $WXDEST ]; then
19 rm -f -r $WXDEST/wxgtk
21 mkdir $WXDEST/wxgtk
/release
26 cd $WXDEST/wxgtk
/release
28 $WXSRC/configure
--no-recursion
30 make -j1 dist bzip
-dist-only
31 mv $WXDEST/wxgtk
/release
/*.gz
$WXDEST/wxgtk
/release
/*.bz2
$WXDEST
36 echo Making wxMGL tarballs...
38 if [ ! -d $WXDEST ]; then
42 rm -f -r $WXDEST/wxmgl
44 mkdir $WXDEST/wxmgl
/release
49 cd $WXDEST/wxmgl
/release
51 $WXSRC/configure
--no-recursion --with-mgl
53 make -j1 dist bzip
-dist-only
54 mv $WXDEST/wxmgl
/release
/*.gz
$WXDEST/wxmgl
/release
/*.bz2
$WXDEST
59 echo Making wxBase tarballs...
61 if [ ! -d $WXDEST ]; then
65 rm -f -r $WXDEST/wxbase
67 mkdir $WXDEST/wxbase
/release
72 cd $WXDEST/wxbase
/release
74 $WXSRC/configure
--no-recursion --disable-gui
76 make -j1 dist bzip
-dist-only
77 mv $WXDEST/wxbase
/release
/*.gz
$WXDEST/wxbase
/release
/*.bz2
$WXDEST
82 echo Making wxX11 tarballs...
84 if [ ! -d $WXDEST ]; then
88 rm -f -r $WXDEST/wxx11
90 mkdir $WXDEST/wxx
11/release
95 cd $WXDEST/wxx
11/release
97 $WXSRC/configure
--with-x11 --no-recursion
99 make -j1 dist bzip
-dist-only
101 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
102 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
107 echo Making wxMotif tarballs...
109 if [ ! -d $WXDEST ]; then
113 rm -f -r $WXDEST/wxmotif
114 mkdir $WXDEST/wxmotif
115 mkdir $WXDEST/wxmotif
/release
120 cd $WXDEST/wxmotif
/release
122 $WXSRC/configure
--with-motif --no-recursion
124 make -j1 dist bzip
-dist-only
126 cp $WXDEST/wxmotif
/release
/*.
tar.gz
$WXDEST
127 cp $WXDEST/wxmotif
/release
/*.
tar.bz2
$WXDEST
129 echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
134 tar xfz ..
/wxMOTIF
-$WXVER.
tar.gz
135 mv wxMOTIF
-$WXVER wxMotif
-$WXVER
136 rm -f ..
/wxMOTIF
-$WXVER.
tar.gz
137 rm -f ..
/wxMOTIF
-$WXVER.
tar.bz2
138 tar cf ..
/wxMotif
-$WXVER.
tar *
139 gzip -c ..
/wxMotif
-$WXVER.
tar > ..
/wxMotif
-$WXVER.
tar.gz
140 bzip2 -f9 ..
/wxMotif
-$WXVER.
tar
143 # rm -f -r $WXDEST/wxmotif
148 echo Making wxMac tarballs...
150 if [ ! -d $WXDEST ]; then
154 rm -f -r $WXDEST/wxmac
156 mkdir $WXDEST/wxmac
/release
161 cd $WXDEST/wxmac
/release
163 $WXSRC/configure
--with-mac --no-recursion
165 make -j1 dist bzip
-dist-only
167 cp $WXDEST/wxmac
/release
/*.
tar.gz
$WXDEST
168 cp $WXDEST/wxmac
/release
/*.
tar.bz2
$WXDEST
170 echo Rearchiving wxMac tarballs to change wxMAC to wxMAC...
175 tar xfz ..
/wxMac
-$WXVER.
tar.gz
176 mv wxMAC
-$WXVER wxMac
-$WXVER
177 rm -f ..
/wxMAC
-$WXVER.
tar.gz
178 rm -f ..
/wxMAC
-$WXVER.
tar.bz2
179 tar cf ..
/wxMac
-$WXVER.
tar *
180 gzip -c ..
/wxMac
-$WXVER.
tar > ..
/wxMac
-$WXVER.
tar.gz
181 bzip2 -f9 ..
/wxMac
-$WXVER.
tar
185 rm -f -r $WXDEST/wxmac
190 cp $WXSRC/docs
/readme.txt
$WXDEST/readme
-${WXVER}.txt
191 cp $WXSRC/docs
/changes.txt
$WXDEST/changes
-${WXVER}.txt
192 cp $WXSRC/docs
/mgl
/readme.txt
$WXDEST/readme
-mgl-${WXVER}.txt
193 cp $WXSRC/docs
/mgl
/install.txt
$WXDEST/install-mgl-${WXVER}.txt
194 cp $WXSRC/docs
/x
11/readme.txt
$WXDEST/readme
-x11-${WXVER}.txt
195 cp $WXSRC/docs
/x
11/readme
-nanox.txt
$WXDEST/readme
-nanox-${WXVER}.txt
196 cp $WXSRC/docs
/x
11/install.txt
$WXDEST/install-x11-${WXVER}.txt
197 cp $WXSRC/docs
/motif
/readme.txt
$WXDEST/readme
-motif-${WXVER}.txt
198 cp $WXSRC/docs
/motif
/install.txt
$WXDEST/install-motif-${WXVER}.txt
199 cp $WXSRC/docs
/msw
/readme.txt
$WXDEST/readme
-msw-${WXVER}.txt
200 cp $WXSRC/docs
/msw
/install.txt
$WXDEST/install-msw-${WXVER}.txt
201 cp $WXSRC/docs
/gtk
/readme.txt
$WXDEST/readme
-gtk-${WXVER}.txt
202 cp $WXSRC/docs
/gtk
/install.txt
$WXDEST/install-gtk-${WXVER}.txt
203 cp $WXSRC/docs
/mac
/readme.txt
$WXDEST/readme
-mac-${WXVER}.txt
204 cp $WXSRC/docs
/mac
/install.txt
$WXDEST/install-mac-${WXVER}.txt
205 cp $WXSRC/docs
/os
2/install.txt
$WXDEST/install-os2-${WXVER}.txt
210 mkdir -p $WXSRC/docs
/html
/wx
211 mkdir -p $WXSRC/docs
/html
/tex2rtf
212 mkdir -p $WXSRC/docs
/html
/fl
213 mkdir -p $WXSRC/docs
/html
/ogl
214 mkdir -p $WXSRC/docs
/htb
216 rm -f -r $WXSRC/docs
/html
/wx
/*.htm
*
217 rm -f -r $WXSRC/docs
/htb
/wx.htb
219 echo Making HTML wxWidgets manual...
220 cd $WXSRC/docs
/latex
/wx
221 cp *.gif
$WXSRC/docs
/html
/wx
222 tex2rtf manual.tex
$WXSRC/docs
/html
/wx
/wx.htm
-twice -html
224 echo Making HTB wxWidgets manual...
225 cd $WXSRC/docs
/html
/wx
226 zip -q $WXSRC/docs
/htb
/wx.htb
*.html
*.gif
*.hhp
*.hhc
*.hhk
228 echo Archiving manuals...
231 echo Done making manuals.
252 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
254 echo " --help Display this help message"
255 echo " --wxgtk Spin wxGTK"
256 echo " --wxbase Spin wxBase"
257 echo " --wxx11 Spin wxX11"
258 echo " --wxmotif Spin wxMotif"
259 echo " --wxmac Spin wxMac"
260 echo " --wxmgl Spin wxMGL"
261 echo " --docs Spin docs"
262 echo " --all Spin EVERYTHING"
263 echo " --updatecvs Update from CVS"
287 # Process command line options.
291 --wxx11) SPINWXX11
=1 ;;
292 --wxgtk) SPINWXGTK
=1 ;;
293 --wxmac) SPINWXMAC
=1 ;;
294 --wxbase) SPINWXBASE
=1 ;;
295 --wxmgl) SPINWXMGL
=1 ;;
296 --wxmotif) SPINWXMOTIF
=1 ;;
297 --all) SPINEVERYTHING
=1 ;;
298 --updatecvs) UPDATECVS
=1 ;;
299 --silent) SILENT
=1 ;;
307 echo About to
make wxWidgets RPMs
:
312 # we don't want this when batch building tarballs.
313 if [ "$SILENT" = "0" ]; then
314 echo CTRL
-C if this is not correct.
318 if [ "$UPDATECVS" = "1" ]; then
322 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
326 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
330 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
334 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
338 if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
342 if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
346 if [ "$SPINDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then