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
78 if [ ! -d $WXDEST ]; then
82 rm -f -r $WXDEST/wxmgl
84 mkdir $WXDEST/wxmgl
/release
90 cd $WXDEST/wxmgl
/release
92 $WXSRC/configure
--with-mgl --no-recursion
94 make -j1 dist bzip
-dist-only
96 echo Setting up RPM build dir
$RPM_ROOT...
101 mkdir $RPM_ROOT/RPMS
/i386
102 mkdir $RPM_ROOT/RPMS
/i686
103 mkdir $RPM_ROOT/RPMS
/noarch
104 mkdir $RPM_ROOT/SOURCES
105 mkdir $RPM_ROOT/SPECS
106 mkdir $RPM_ROOT/SRPMS
108 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
110 echo Copying wxMGL
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
111 cp wxMGL
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
112 echo Copying wxMGL.spec to
$RPM_ROOT/SPECS...
113 cp $WXSRC/wxMGL.spec
$RPM_ROOT/SPECS
115 echo Starting wxMGL RPM build...
117 rpmbuild
-ba SPECS
/wxMGL.spec
2>&1 | tee wxMGL.out
119 echo Finished wxMGL RPM build
, in $RPM_ROOT.
125 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
126 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
127 cp $WXDEST/wxmgl
/release
/*.
tar.gz
$WXDEST
128 cp $WXDEST/wxmgl
/release
/*.
tar.bz2
$WXDEST
130 rm -f -r $WXDEST/wxmgl
132 echo Now try the RPMs with rpm
-i.
137 echo Making wxMotif RPMs...
138 RPM_ROOT
=$WXDEST/wxmotif
/rpm
-root
140 if [ ! -d $WXDEST ]; then
144 rm -f -r $WXDEST/wxmotif
145 mkdir $WXDEST/wxmotif
146 mkdir $WXDEST/wxmotif
/release
152 cd $WXDEST/wxmotif
/release
154 $WXSRC/configure
--with-motif --no-recursion
156 make -j1 dist bzip
-dist-only
158 echo Setting up RPM build dir
$RPM_ROOT...
161 mkdir $RPM_ROOT/BUILD
163 mkdir $RPM_ROOT/RPMS
/i386
164 mkdir $RPM_ROOT/RPMS
/i686
165 mkdir $RPM_ROOT/RPMS
/noarch
166 mkdir $RPM_ROOT/SOURCES
167 mkdir $RPM_ROOT/SPECS
168 mkdir $RPM_ROOT/SRPMS
170 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
172 echo Copying wxMOTIF
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
173 cp wxMOTIF
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
174 echo Copying wxMotif.spec to
$RPM_ROOT/SPECS...
175 cp $WXSRC/wxMotif.spec
$RPM_ROOT/SPECS
177 echo Starting wxMotif RPM build...
179 rpmbuild
-ba SPECS
/wxMotif.spec
2>&1 | tee wxGTK.out
181 echo Finished wxMotif RPM build
, in $RPM_ROOT.
187 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
188 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
189 cp $WXDEST/wxmotif
/release
/*.
tar.gz
$WXDEST
190 cp $WXDEST/wxmotif
/release
/*.
tar.bz2
$WXDEST
192 echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
197 tar xfz ..
/wxMOTIF
-$WXVER.
tar.gz
198 mv wxMOTIF
-$WXVER wxMotif
-$WXVER
199 rm -f ..
/wxMOTIF
-$WXVER.
tar.gz
200 rm -f ..
/wxMOTIF
-$WXVER.
tar.bz2
201 tar cf ..
/wxMotif
-$WXVER.
tar *
202 gzip -c ..
/wxMotif
-$WXVER.
tar > ..
/wxMotif
-$WXVER.
tar.gz
203 bzip2 -f9 ..
/wxMotif
-$WXVER.
tar
206 rm -f -r $WXDEST/wxmotif
208 echo Now try the RPMs with rpm
-i.
213 echo Making wxMac tarballs...
214 echo Note that this must be
done on a Mac.
215 if [ ! -d $WXDEST ]; then
219 rm -f -r $WXDEST/wxmac
221 mkdir $WXDEST/wxmac
/release
226 cd $WXDEST/wxmac
/release
228 $WXSRC/configure
--with-mac --no-recursion
230 make -j1 dist bzip
-dist-only
232 cp $WXDEST/wxmac
/release
/*.
tar.gz
$WXDEST
233 cp $WXDEST/wxmac
/release
/*.
tar.bz2
$WXDEST
235 echo Rearchiving wxMac tarballs to change wxMAC to wxMAC...
240 tar xfz ..
/wxMac
-$WXVER.
tar.gz
241 mv wxMAC
-$WXVER wxMac
-$WXVER
242 rm -f ..
/wxMAC
-$WXVER.
tar.gz
243 rm -f ..
/wxMAC
-$WXVER.
tar.bz2
244 tar cf ..
/wxMac
-$WXVER.
tar *
245 gzip -c ..
/wxMac
-$WXVER.
tar > ..
/wxMac
-$WXVER.
tar.gz
246 bzip2 -f9 ..
/wxMac
-$WXVER.
tar
250 rm -f -r $WXDEST/wxmac
251 echo Now try the RPMs with rpm
-i.
256 echo Making wxBase RPMs...
257 RPM_ROOT
=$WXDEST/wxbase
/rpm
-root
259 if [ ! -d $WXDEST ]; then
263 rm -f -r $WXDEST/wxbase
265 mkdir $WXDEST/wxbase
/release
271 cd $WXDEST/wxbase
/release
273 $WXSRC/configure
--disable-gui --no-recursion
275 make -j1 dist bzip
-dist-only
277 echo Setting up RPM build dir
$RPM_ROOT...
280 mkdir $RPM_ROOT/BUILD
282 mkdir $RPM_ROOT/RPMS
/i386
283 mkdir $RPM_ROOT/RPMS
/i686
284 mkdir $RPM_ROOT/RPMS
/noarch
285 mkdir $RPM_ROOT/SOURCES
286 mkdir $RPM_ROOT/SPECS
287 mkdir $RPM_ROOT/SRPMS
289 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
291 echo Copying wxBase
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
292 cp wxBase
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
293 echo Copying wxBase.spec to
$RPM_ROOT/SPECS...
294 cp $WXSRC/wxBase.spec
$RPM_ROOT/SPECS
296 echo Starting wxBase RPM build...
298 rpmbuild
-ba SPECS
/wxBase.spec
2>&1 | tee wxBase.out
300 echo Finished wxBase RPM build
, in $RPM_ROOT.
306 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
307 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
308 cp $WXDEST/wxbase
/release
/*.
tar.gz
$WXDEST
309 cp $WXDEST/wxbase
/release
/*.
tar.bz2
$WXDEST
311 rm -f -r $WXDEST/wxbase
312 echo Now try the RPMs with rpm
-i.
317 echo Making wxX11 RPMs...
318 RPM_ROOT
=$WXDEST/wxx
11/rpm
-root
320 if [ ! -d $WXDEST ]; then
324 rm -f -r $WXDEST/wxx11
326 mkdir $WXDEST/wxx
11/release
332 cd $WXDEST/wxx
11/release
334 $WXSRC/configure
--with-x11 --no-recursion
336 make -j1 dist bzip
-dist-only
338 echo Setting up RPM build dir
$RPM_ROOT...
341 mkdir $RPM_ROOT/BUILD
343 mkdir $RPM_ROOT/RPMS
/i386
344 mkdir $RPM_ROOT/RPMS
/i686
345 mkdir $RPM_ROOT/RPMS
/noarch
346 mkdir $RPM_ROOT/SOURCES
347 mkdir $RPM_ROOT/SPECS
348 mkdir $RPM_ROOT/SRPMS
350 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
352 echo Copying wxX11
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
353 cp wxX11
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
354 echo Copying wxX11.spec to
$RPM_ROOT/SPECS...
355 cp $WXSRC/wxX11.spec
$RPM_ROOT/SPECS
357 echo Starting wxX11 RPM build...
359 rpmbuild
-ba SPECS
/wxX11.spec
2>&1 | tee wxX11.out
361 echo Finished wxX11 RPM build
, in $RPM_ROOT.
367 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
368 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
369 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
370 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
372 rm -f -r $WXDEST/wxx11
373 echo Now try the RPMs with rpm
-i.
392 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
394 echo " --help Display this help message"
395 echo " --wxgtk Spin wxGTK RPMs"
396 echo " --wxbase Spin wxBase RPMs"
397 echo " --wxx11 Spin wxX11 RPMs"
398 echo " --wxmotif Spin wxMotif RPMs"
399 echo " --wxmgl Spin wxMGL RPMs"
400 echo " --wxmac Make wxMac tarball"
401 echo " --all Spin EVERYTHING"
402 echo " --updatecvs Update from CVS"
426 # Process command line options.
430 --wxx11) SPINWXX11
=1 ;;
431 --wxgtk) SPINWXGTK
=1 ;;
432 --wxmotif) SPINWXMOTIF
=1 ;;
433 --wxmgl) SPINWXMGL
=1 ;;
434 --wxmac) SPINWXMAC
=1 ;;
435 --wxbase) SPINWXBASE
=1 ;;
436 --all) SPINEVERYTHING
=1 ;;
437 --updatecvs) UPDATECVS
=1 ;;
445 echo About to
make wxWindows RPMs
:
449 echo CTRL
-C if this is not correct.
452 if [ "$UPDATECVS" = "1" ]; then
456 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
460 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
464 if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
468 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
472 if [ "$SPINWXMGL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
476 if [ "$SPINWXMAC" = "1" ]; then