2 # Makes the wxWindows RPMs
7 echo Updating from CVS...
13 echo Making wxGTK RPMs...
14 RPM_ROOT
=$WXDEST/wxgtk
/rpm
-root
16 if [ ! -d $WXDEST ]; then
20 rm -f -r $WXDEST/wxgtk
22 mkdir $WXDEST/wxgtk
/release
28 cd $WXDEST/wxgtk
/release
30 $WXSRC/configure
--with-gtk --no-recursion
32 make -j1 dist bzip
-dist-only
34 echo Setting up RPM build dir
$RPM_ROOT...
39 mkdir $RPM_ROOT/RPMS
/i386
40 mkdir $RPM_ROOT/RPMS
/i686
41 mkdir $RPM_ROOT/RPMS
/noarch
42 mkdir $RPM_ROOT/SOURCES
46 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
48 echo Copying wxGTK
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
49 cp wxGTK
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
50 echo Copying wxGTK.spec to
$RPM_ROOT/SPECS...
51 cp $WXSRC/wxGTK.spec
$RPM_ROOT/SPECS
53 echo Starting wxGTK RPM build...
55 rpmbuild
-ba SPECS
/wxGTK.spec
2>&1 | tee wxGTK.out
57 echo Finished wxGTK RPM build
, in $RPM_ROOT.
63 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
64 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
65 cp $WXDEST/wxgtk
/release
/*.
tar.gz
$WXDEST
66 cp $WXDEST/wxgtk
/release
/*.
tar.bz2
$WXDEST
68 rm -f -r $WXDEST/wxgtk
70 echo Now try the RPMs with rpm
-i.
75 echo Making wxMGL RPMs...
76 RPM_ROOT
=$WXDEST/wxmgl
/rpm
-root
77 export MGL_ROOT
=/usr
/lib
/mgl5
79 if [ ! -d $WXDEST ]; then
83 rm -f -r $WXDEST/wxmgl
85 mkdir $WXDEST/wxmgl
/release
91 cd $WXDEST/wxmgl
/release
93 $WXSRC/configure
--with-mgl --no-recursion
95 make -j1 dist bzip
-dist-only
97 echo Setting up RPM build dir
$RPM_ROOT...
100 mkdir $RPM_ROOT/BUILD
102 mkdir $RPM_ROOT/RPMS
/i386
103 mkdir $RPM_ROOT/RPMS
/i686
104 mkdir $RPM_ROOT/RPMS
/noarch
105 mkdir $RPM_ROOT/SOURCES
106 mkdir $RPM_ROOT/SPECS
107 mkdir $RPM_ROOT/SRPMS
109 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
111 echo Copying wxMGL
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
112 cp wxMGL
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
113 echo Copying wxMGL.spec to
$RPM_ROOT/SPECS...
114 cp $WXSRC/wxMGL.spec
$RPM_ROOT/SPECS
116 echo Starting wxMGL RPM build...
118 rpmbuild
-ba SPECS
/wxMGL.spec
2>&1 | tee wxMGL.out
120 echo Finished wxMGL RPM build
, in $RPM_ROOT.
126 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
127 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
128 cp $WXDEST/wxmgl
/release
/*.
tar.gz
$WXDEST
129 cp $WXDEST/wxmgl
/release
/*.
tar.bz2
$WXDEST
131 rm -f -r $WXDEST/wxmgl
133 echo Now try the RPMs with rpm
-i.
138 echo Making wxMotif RPMs...
139 RPM_ROOT
=$WXDEST/wxmotif
/rpm
-root
141 if [ ! -d $WXDEST ]; then
145 rm -f -r $WXDEST/wxmotif
146 mkdir $WXDEST/wxmotif
147 mkdir $WXDEST/wxmotif
/release
153 cd $WXDEST/wxmotif
/release
155 $WXSRC/configure
--with-motif --no-recursion
157 make -j1 dist bzip
-dist-only
159 echo Setting up RPM build dir
$RPM_ROOT...
162 mkdir $RPM_ROOT/BUILD
164 mkdir $RPM_ROOT/RPMS
/i386
165 mkdir $RPM_ROOT/RPMS
/i686
166 mkdir $RPM_ROOT/RPMS
/noarch
167 mkdir $RPM_ROOT/SOURCES
168 mkdir $RPM_ROOT/SPECS
169 mkdir $RPM_ROOT/SRPMS
171 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
173 echo Copying wxMOTIF
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
174 cp wxMOTIF
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
175 echo Copying wxMotif.spec to
$RPM_ROOT/SPECS...
176 cp $WXSRC/wxMotif.spec
$RPM_ROOT/SPECS
178 echo Starting wxMotif RPM build...
180 rpmbuild
-ba SPECS
/wxMotif.spec
2>&1 | tee wxGTK.out
182 echo Finished wxMotif RPM build
, in $RPM_ROOT.
188 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
189 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
190 cp $WXDEST/wxmotif
/release
/*.
tar.gz
$WXDEST
191 cp $WXDEST/wxmotif
/release
/*.
tar.bz2
$WXDEST
193 echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
198 tar xfz ..
/wxMOTIF
-$WXVER.
tar.gz
199 mv wxMOTIF
-$WXVER wxMotif
-$WXVER
200 rm -f ..
/wxMOTIF
-$WXVER.
tar.gz
201 rm -f ..
/wxMOTIF
-$WXVER.
tar.bz2
202 tar cf ..
/wxMotif
-$WXVER.
tar *
203 gzip -c ..
/wxMotif
-$WXVER.
tar > ..
/wxMotif
-$WXVER.
tar.gz
204 bzip2 -f9 ..
/wxMotif
-$WXVER.
tar
207 rm -f -r $WXDEST/wxmotif
209 echo Now try the RPMs with rpm
-i.
214 echo Making wxMac tarballs...
215 echo Note that this must be
done on a Mac.
216 if [ ! -d $WXDEST ]; then
220 rm -f -r $WXDEST/wxmac
222 mkdir $WXDEST/wxmac
/release
227 cd $WXDEST/wxmac
/release
229 $WXSRC/configure
--with-mac --no-recursion
231 make -j1 dist bzip
-dist-only
233 cp $WXDEST/wxmac
/release
/*.
tar.gz
$WXDEST
234 cp $WXDEST/wxmac
/release
/*.
tar.bz2
$WXDEST
236 echo Rearchiving wxMac tarballs to change wxMAC to wxMAC...
241 tar xfz ..
/wxMac
-$WXVER.
tar.gz
242 mv wxMAC
-$WXVER wxMac
-$WXVER
243 rm -f ..
/wxMAC
-$WXVER.
tar.gz
244 rm -f ..
/wxMAC
-$WXVER.
tar.bz2
245 tar cf ..
/wxMac
-$WXVER.
tar *
246 gzip -c ..
/wxMac
-$WXVER.
tar > ..
/wxMac
-$WXVER.
tar.gz
247 bzip2 -f9 ..
/wxMac
-$WXVER.
tar
251 rm -f -r $WXDEST/wxmac
252 echo Now try the RPMs with rpm
-i.
257 echo Making wxBase RPMs...
258 RPM_ROOT
=$WXDEST/wxbase
/rpm
-root
260 if [ ! -d $WXDEST ]; then
264 rm -f -r $WXDEST/wxbase
266 mkdir $WXDEST/wxbase
/release
272 cd $WXDEST/wxbase
/release
274 $WXSRC/configure
--disable-gui --no-recursion
276 make -j1 dist bzip
-dist-only
278 echo Setting up RPM build dir
$RPM_ROOT...
281 mkdir $RPM_ROOT/BUILD
283 mkdir $RPM_ROOT/RPMS
/i386
284 mkdir $RPM_ROOT/RPMS
/i686
285 mkdir $RPM_ROOT/RPMS
/noarch
286 mkdir $RPM_ROOT/SOURCES
287 mkdir $RPM_ROOT/SPECS
288 mkdir $RPM_ROOT/SRPMS
290 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
292 echo Copying wxBase
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
293 cp wxBase
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
294 echo Copying wxBase.spec to
$RPM_ROOT/SPECS...
295 cp $WXSRC/wxBase.spec
$RPM_ROOT/SPECS
297 echo Starting wxBase RPM build...
299 rpmbuild
-ba SPECS
/wxBase.spec
2>&1 | tee wxBase.out
301 echo Finished wxBase RPM build
, in $RPM_ROOT.
307 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
308 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
309 cp $WXDEST/wxbase
/release
/*.
tar.gz
$WXDEST
310 cp $WXDEST/wxbase
/release
/*.
tar.bz2
$WXDEST
312 rm -f -r $WXDEST/wxbase
313 echo Now try the RPMs with rpm
-i.
318 echo Making wxX11 RPMs...
319 RPM_ROOT
=$WXDEST/wxx
11/rpm
-root
321 if [ ! -d $WXDEST ]; then
325 rm -f -r $WXDEST/wxx11
327 mkdir $WXDEST/wxx
11/release
333 cd $WXDEST/wxx
11/release
335 $WXSRC/configure
--with-x11 --no-recursion
337 make -j1 dist bzip
-dist-only
339 echo Setting up RPM build dir
$RPM_ROOT...
342 mkdir $RPM_ROOT/BUILD
344 mkdir $RPM_ROOT/RPMS
/i386
345 mkdir $RPM_ROOT/RPMS
/i686
346 mkdir $RPM_ROOT/RPMS
/noarch
347 mkdir $RPM_ROOT/SOURCES
348 mkdir $RPM_ROOT/SPECS
349 mkdir $RPM_ROOT/SRPMS
351 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
353 echo Copying wxX11
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
354 cp wxX11
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
355 echo Copying wxX11.spec to
$RPM_ROOT/SPECS...
356 cp $WXSRC/wxX11.spec
$RPM_ROOT/SPECS
358 echo Starting wxX11 RPM build...
360 rpmbuild
-ba SPECS
/wxX11.spec
2>&1 | tee wxX11.out
362 echo Finished wxX11 RPM build
, in $RPM_ROOT.
368 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
369 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
370 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
371 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
373 rm -f -r $WXDEST/wxx11
374 echo Now try the RPMs with rpm
-i.
393 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
395 echo " --help Display this help message"
396 echo " --wxgtk Spin wxGTK RPMs"
397 echo " --wxbase Spin wxBase RPMs"
398 echo " --wxx11 Spin wxX11 RPMs"
399 echo " --wxmotif Spin wxMotif RPMs"
400 echo " --wxmgl Spin wxMGL RPMs"
401 echo " --wxmac Make wxMac tarball"
402 echo " --all Spin EVERYTHING"
403 echo " --updatecvs Update from CVS"
427 # Process command line options.
431 --wxx11) SPINWXX11
=1 ;;
432 --wxgtk) SPINWXGTK
=1 ;;
433 --wxmotif) SPINWXMOTIF
=1 ;;
434 --wxmgl) SPINWXMGL
=1 ;;
435 --wxmac) SPINWXMAC
=1 ;;
436 --wxbase) SPINWXBASE
=1 ;;
437 --all) SPINEVERYTHING
=1 ;;
438 --updatecvs) UPDATECVS
=1 ;;
446 echo About to
make wxWindows RPMs
:
450 echo CTRL
-C if this is not correct.
453 if [ "$UPDATECVS" = "1" ]; then
457 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
461 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
465 if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
469 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
473 if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
477 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then