2 # Makes the wxWidgets tarballs with 'make dist'
9 # for docopyreadmefiles and docopysetup_h
10 SCRIPTDIR
=$WXSRC/distrib
/scripts
11 .
$SCRIPTDIR/utils.inc
16 echo Updating from CVS...
22 echo Making wxGTK tarballs...
24 if [ ! -d $WXDEST ]; then
28 rm -f -r $WXDEST/wxgtk
30 mkdir $WXDEST/wxgtk
/release
35 cd $WXDEST/wxgtk
/release
37 $WXSRC/configure
--no-recursion
39 make -j1 dist bzip
-dist-only
40 mv $WXDEST/wxgtk
/release
/*.gz
$WXDEST/wxgtk
/release
/*.bz2
$WXDEST
45 echo Making wxMGL tarballs...
47 if [ ! -d $WXDEST ]; then
51 rm -f -r $WXDEST/wxmgl
53 mkdir $WXDEST/wxmgl
/release
58 cd $WXDEST/wxmgl
/release
60 $WXSRC/configure
--no-recursion --with-mgl
62 make -j1 dist bzip
-dist-only
63 mv $WXDEST/wxmgl
/release
/*.gz
$WXDEST/wxmgl
/release
/*.bz2
$WXDEST
68 echo Making wxBase tarballs...
70 if [ ! -d $WXDEST ]; then
74 rm -f -r $WXDEST/wxbase
76 mkdir $WXDEST/wxbase
/release
81 cd $WXDEST/wxbase
/release
83 $WXSRC/configure
--no-recursion --disable-gui
85 make -j1 dist bzip
-dist-only
86 mv $WXDEST/wxbase
/release
/*.gz
$WXDEST/wxbase
/release
/*.bz2
$WXDEST
91 echo Making wxX11 tarballs...
93 if [ ! -d $WXDEST ]; then
97 rm -f -r $WXDEST/wxx11
99 mkdir $WXDEST/wxx
11/release
104 cd $WXDEST/wxx
11/release
106 $WXSRC/configure
--with-x11 --no-recursion
108 make -j1 dist bzip
-dist-only
110 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
111 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
116 echo Making wxMotif tarballs...
118 if [ ! -d $WXDEST ]; then
122 rm -f -r $WXDEST/wxmotif
123 mkdir $WXDEST/wxmotif
124 mkdir $WXDEST/wxmotif
/release
129 cd $WXDEST/wxmotif
/release
131 $WXSRC/configure
--with-motif --no-recursion
133 make -j1 dist bzip
-dist-only
135 cp $WXDEST/wxmotif
/release
/*.
tar.gz
$WXDEST
136 cp $WXDEST/wxmotif
/release
/*.
tar.bz2
$WXDEST
138 echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
143 tar xfz ..
/wxMOTIF
-$WXVER.
tar.gz
144 mv wxMOTIF
-$WXVER wxMotif
-$WXVER
145 rm -f ..
/wxMOTIF
-$WXVER.
tar.gz
146 rm -f ..
/wxMOTIF
-$WXVER.
tar.bz2
147 tar cf ..
/wxMotif
-$WXVER.
tar *
148 gzip -c ..
/wxMotif
-$WXVER.
tar > ..
/wxMotif
-$WXVER.
tar.gz
149 bzip2 -f9 ..
/wxMotif
-$WXVER.
tar
152 # rm -f -r $WXDEST/wxmotif
157 mkdir -p $WXSRC/docs
/html
/wx
158 mkdir -p $WXSRC/docs
/html
/tex2rtf
159 mkdir -p $WXSRC/docs
/html
/fl
160 mkdir -p $WXSRC/docs
/html
/ogl
161 mkdir -p $WXSRC/docs
/htb
163 rm -f -r $WXSRC/docs
/html
/wx
/*.htm
*
164 rm -f -r $WXSRC/docs
/htb
/wx.htb
166 echo Making HTML wxWidgets manual...
167 cd $WXSRC/docs
/latex
/wx
168 cp *.gif
$WXSRC/docs
/html
/wx
169 tex2rtf manual.tex
$WXSRC/docs
/html
/wx
/wx.htm
-twice -html
171 echo Making HTB wxWidgets manual...
172 cd $WXSRC/docs
/html
/wx
173 zip -q $WXSRC/docs
/htb
/wx.htb
*.html
*.gif
*.hhp
*.hhc
*.hhk
175 echo Archiving manuals...
178 echo Done making manuals.
194 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
196 echo " --help Display this help message"
197 echo " --wxgtk Spin wxGTK"
198 echo " --wxbase Spin wxBase"
199 echo " --wxx11 Spin wxX11"
200 echo " --wxmotif Spin wxMotif"
201 echo " --wxmgl Spin wxMGL"
202 echo " --docs Spin docs"
203 echo " --all Spin EVERYTHING"
204 echo " --updatecvs Update from CVS"
228 # Process command line options.
232 --wxx11) SPINWXX11
=1 ;;
233 --wxgtk) SPINWXGTK
=1 ;;
234 --wxmac) SPINWXMAC
=1 ;;
235 --wxbase) SPINWXBASE
=1 ;;
236 --wxmgl) SPINWXMGL
=1 ;;
237 --wxmotif) SPINWXMOTIF
=1 ;;
238 --all) SPINEVERYTHING
=1 ;;
239 --updatecvs) UPDATECVS
=1 ;;
240 --silent) SILENT
=1 ;;
248 # we don't want this when batch building tarballs.
249 if [ "$SILENT" = "0" ]; then
250 echo CTRL
-C if this is not correct.
254 if [ "$UPDATECVS" = "1" ]; then
258 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
262 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
266 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
270 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
274 if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
278 if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
282 if [ "$SPINDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then