2 # Makes the wxWidgets tarballs with 'make dist'
11 # for docopyreadmefiles and docopysetup_h
12 SCRIPTDIR
=$WXSRC/distrib
/scripts
13 .
$SCRIPTDIR/utils.inc
18 echo Updating from CVS...
24 echo Making wxGTK tarballs...
26 if [ ! -d $WXDEST ]; then
30 rm -f -r $WXDEST/wxgtk
32 mkdir $WXDEST/wxgtk
/release
37 cd $WXDEST/wxgtk
/release
39 $WXSRC/configure
--no-recursion
41 make -j1 dist bzip
-dist-only
42 mv $WXDEST/wxgtk
/release
/*.gz
$WXDEST/wxgtk
/release
/*.bz2
$WXDEST
47 echo Making wxMGL tarballs...
49 if [ ! -d $WXDEST ]; then
53 rm -f -r $WXDEST/wxmgl
55 mkdir $WXDEST/wxmgl
/release
60 cd $WXDEST/wxmgl
/release
62 $WXSRC/configure
--no-recursion --with-mgl
64 make -j1 dist bzip
-dist-only
65 mv $WXDEST/wxmgl
/release
/*.gz
$WXDEST/wxmgl
/release
/*.bz2
$WXDEST
70 echo Making wxBase tarballs...
72 if [ ! -d $WXDEST ]; then
76 rm -f -r $WXDEST/wxbase
78 mkdir $WXDEST/wxbase
/release
83 cd $WXDEST/wxbase
/release
85 $WXSRC/configure
--no-recursion --disable-gui
87 make -j1 dist bzip
-dist-only
88 mv $WXDEST/wxbase
/release
/*.gz
$WXDEST/wxbase
/release
/*.bz2
$WXDEST
93 echo Making wxX11 tarballs...
95 if [ ! -d $WXDEST ]; then
99 rm -f -r $WXDEST/wxx11
101 mkdir $WXDEST/wxx
11/release
106 cd $WXDEST/wxx
11/release
108 $WXSRC/configure
--with-x11 --no-recursion
110 make -j1 dist bzip
-dist-only
112 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
113 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
118 echo Making wxMotif tarballs...
120 if [ ! -d $WXDEST ]; then
124 rm -f -r $WXDEST/wxmotif
125 mkdir $WXDEST/wxmotif
126 mkdir $WXDEST/wxmotif
/release
131 cd $WXDEST/wxmotif
/release
133 $WXSRC/configure
--with-motif --no-recursion
135 make -j1 dist bzip
-dist-only
137 cp $WXDEST/wxmotif
/release
/*.
tar.gz
$WXDEST
138 cp $WXDEST/wxmotif
/release
/*.
tar.bz2
$WXDEST
140 echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
145 tar xfz ..
/wxMOTIF
-$WXVER.
tar.gz
146 mv wxMOTIF
-$WXVER wxMotif
-$WXVER
147 rm -f ..
/wxMOTIF
-$WXVER.
tar.gz
148 rm -f ..
/wxMOTIF
-$WXVER.
tar.bz2
149 tar cf ..
/wxMotif
-$WXVER.
tar *
150 gzip -c ..
/wxMotif
-$WXVER.
tar > ..
/wxMotif
-$WXVER.
tar.gz
151 bzip2 -f9 ..
/wxMotif
-$WXVER.
tar
154 # rm -f -r $WXDEST/wxmotif
159 mkdir -p $WXSRC/docs
/html
/wx
160 mkdir -p $WXSRC/docs
/html
/tex2rtf
161 mkdir -p $WXSRC/docs
/html
/fl
162 mkdir -p $WXSRC/docs
/html
/ogl
163 mkdir -p $WXSRC/docs
/htb
165 rm -f -r $WXSRC/docs
/html
/wx
/*.htm
*
166 rm -f -r $WXSRC/docs
/htb
/wx.htb
168 echo Making HTML wxWidgets manual...
169 cd $WXSRC/docs
/latex
/wx
170 cp *.gif
$WXSRC/docs
/html
/wx
171 tex2rtf manual.tex
$WXSRC/docs
/html
/wx
/wx.htm
-twice -html
173 echo Making HTB wxWidgets manual...
174 cd $WXSRC/docs
/html
/wx
175 zip -q $WXSRC/docs
/htb
/wx.htb
*.html
*.gif
*.hhp
*.hhc
*.hhk
177 echo Archiving manuals...
180 echo Done making manuals.
196 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
198 echo " --help Display this help message"
199 echo " --wxgtk Spin wxGTK"
200 echo " --wxbase Spin wxBase"
201 echo " --wxx11 Spin wxX11"
202 echo " --wxmotif Spin wxMotif"
203 echo " --wxmgl Spin wxMGL"
204 echo " --docs Spin docs"
205 echo " --all Spin EVERYTHING"
206 echo " --updatecvs Update from CVS"
230 # Process command line options.
234 --wxx11) SPINWXX11
=1 ;;
235 --wxgtk) SPINWXGTK
=1 ;;
236 --wxmac) SPINWXMAC
=1 ;;
237 --wxbase) SPINWXBASE
=1 ;;
238 --wxmgl) SPINWXMGL
=1 ;;
239 --wxmotif) SPINWXMOTIF
=1 ;;
240 --all) SPINEVERYTHING
=1 ;;
241 --updatecvs) UPDATECVS
=1 ;;
242 --silent) SILENT
=1 ;;
250 # we don't want this when batch building tarballs.
251 if [ "$SILENT" = "0" ]; then
252 echo CTRL
-C if this is not correct.
256 if [ "$UPDATECVS" = "1" ]; then
260 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
264 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
268 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
272 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
276 if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
280 if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
284 if [ "$SPINDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then