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
31 mv $WXDEST/wxgtk
/release
/*.gz
$WXDEST/wxgtk
/release
/*.bz2
$WXDEST
36 echo Making wxX11 tarballs...
38 if [ ! -d $WXDEST ]; then
42 rm -f -r $WXDEST/wxx11
44 mkdir $WXDEST/wxx
11/release
49 cd $WXDEST/wxx
11/release
51 $WXSRC/configure
--with-x11 --no-recursion
55 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
56 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
61 echo Making wxMotif tarballs...
63 if [ ! -d $WXDEST ]; then
67 rm -f -r $WXDEST/wxmotif
69 mkdir $WXDEST/wxmotif
/release
74 cd $WXDEST/wxmotif
/release
76 $WXSRC/configure
--with-motif --no-recursion
80 cp $WXDEST/wxmotif
/release
/*.
tar.gz
$WXDEST
81 cp $WXDEST/wxmotif
/release
/*.
tar.bz2
$WXDEST
83 echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
88 tar xfz ..
/wxMOTIF
-$WXVER.
tar.gz
89 mv wxMOTIF
-$WXVER wxMotif
-$WXVER
90 rm -f ..
/wxMOTIF
-$WXVER.
tar.gz
91 rm -f ..
/wxMOTIF
-$WXVER.
tar.bz2
92 tar cf ..
/wxMotif
-$WXVER.
tar *
93 gzip -c ..
/wxMotif
-$WXVER.
tar > ..
/wxMotif
-$WXVER.
tar.gz
94 bzip2 -f9 ..
/wxMotif
-$WXVER.
tar
97 rm -f -r $WXDEST/wxmotif
102 echo Making wxMac tarballs...
104 if [ ! -d $WXDEST ]; then
108 rm -f -r $WXDEST/wxmac
110 mkdir $WXDEST/wxmac
/release
115 cd $WXDEST/wxmac
/release
117 $WXSRC/configure
--with-mac --no-recursion
121 cp $WXDEST/wxmac
/release
/*.
tar.gz
$WXDEST
122 cp $WXDEST/wxmac
/release
/*.
tar.bz2
$WXDEST
124 echo Rearchiving wxMac tarballs to change wxMAC to wxMAC...
129 tar xfz ..
/wxMac
-$WXVER.
tar.gz
130 mv wxMAC
-$WXVER wxMac
-$WXVER
131 rm -f ..
/wxMAC
-$WXVER.
tar.gz
132 rm -f ..
/wxMAC
-$WXVER.
tar.bz2
133 tar cf ..
/wxMac
-$WXVER.
tar *
134 gzip -c ..
/wxMac
-$WXVER.
tar > ..
/wxMac
-$WXVER.
tar.gz
135 bzip2 -f9 ..
/wxMac
-$WXVER.
tar
139 rm -f -r $WXDEST/wxmac
144 cp $WXSRC/docs
/readme.txt
$WXDEST/readme
-${WXVER}.txt
145 cp $WXSRC/docs
/changes.txt
$WXDEST/changes
-${WXVER}.txt
146 cp $WXSRC/docs
/mgl
/readme.txt
$WXDEST/readme
-mgl-${WXVER}.txt
147 cp $WXSRC/docs
/mgl
/install.txt
$WXDEST/install-mgl-${WXVER}.txt
148 cp $WXSRC/docs
/x
11/readme.txt
$WXDEST/readme
-x11-${WXVER}.txt
149 cp $WXSRC/docs
/x
11/readme
-nanox.txt
$WXDEST/readme
-nanox-${WXVER}.txt
150 cp $WXSRC/docs
/x
11/install.txt
$WXDEST/install-x11-${WXVER}.txt
151 cp $WXSRC/docs
/motif
/readme.txt
$WXDEST/readme
-motif-${WXVER}.txt
152 cp $WXSRC/docs
/motif
/install.txt
$WXDEST/install-motif-${WXVER}.txt
153 cp $WXSRC/docs
/msw
/readme.txt
$WXDEST/readme
-msw-${WXVER}.txt
154 cp $WXSRC/docs
/msw
/install.txt
$WXDEST/install-msw-${WXVER}.txt
155 cp $WXSRC/docs
/gtk
/readme.txt
$WXDEST/readme
-gtk-${WXVER}.txt
156 cp $WXSRC/docs
/gtk
/install.txt
$WXDEST/install-gtk-${WXVER}.txt
157 cp $WXSRC/docs
/mac
/readme.txt
$WXDEST/readme
-mac-${WXVER}.txt
158 cp $WXSRC/docs
/mac
/install.txt
$WXDEST/install-mac-${WXVER}.txt
159 cp $WXSRC/docs
/os
2/install.txt
$WXDEST/install-os2-${WXVER}.txt
164 mkdir -p $WXSRC/docs
/html
/wx
165 mkdir -p $WXSRC/docs
/html
/tex2rtf
166 mkdir -p $WXSRC/docs
/html
/fl
167 mkdir -p $WXSRC/docs
/html
/ogl
168 mkdir -p $WXSRC/docs
/htb
170 rm -f -r $WXSRC/docs
/html
/wx
/*.htm
*
171 rm -f -r $WXSRC/docs
/htb
/wx.htb
173 echo Making HTML wxWidgets manual...
174 cd $WXSRC/docs
/latex
/wx
175 cp *.gif
$WXSRC/docs
/html
/wx
176 tex2rtf manual.tex
$WXSRC/docs
/html
/wx
/wx.htm
-twice -html
178 echo Making HTB wxWidgets manual...
179 cd $WXSRC/docs
/html
/wx
180 zip -q $WXSRC/docs
/htb
/wx.htb
*.html
*.gif
*.hhp
*.hhc
*.hhk
182 echo Archiving manuals...
185 echo Done making manuals.
204 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
206 echo " --help Display this help message"
207 echo " --wxgtk Spin wxGTK"
208 echo " --wxbase Spin wxBase"
209 echo " --wxx11 Spin wxX11"
210 echo " --wxmotif Spin wxMotif"
211 echo " --wxmac Spin wxMac"
212 echo " --docs Spin docs"
213 echo " --all Spin EVERYTHING"
214 echo " --updatecvs Update from CVS"
238 # Process command line options.
242 --wxx11) SPINWXX11
=1 ;;
243 --wxgtk) SPINWXGTK
=1 ;;
244 --wxmac) SPINWXMAC
=1 ;;
245 --wxmotif) SPINWXMOTIF
=1 ;;
246 --all) SPINEVERYTHING
=1 ;;
247 --updatecvs) UPDATECVS
=1 ;;
255 echo About to
make wxWidgets RPMs
:
259 echo CTRL
-C if this is not correct.
262 if [ "$UPDATECVS" = "1" ]; then
266 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
270 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
274 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
278 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
282 if [ "$SPINDOCS" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then