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 wxMotif RPMs...
76 RPM_ROOT
=$WXDEST/wxmotif
/rpm
-root
78 if [ ! -d $WXDEST ]; then
82 rm -f -r $WXDEST/wxmotif
84 mkdir $WXDEST/wxmotif
/release
90 cd $WXDEST/wxmotif
/release
92 $WXSRC/configure
--with-motif --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 wxMOTIF
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
111 cp wxMOTIF
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
112 echo Copying wxMotif.spec to
$RPM_ROOT/SPECS...
113 cp $WXSRC/wxMotif.spec
$RPM_ROOT/SPECS
115 echo Starting wxMotif RPM build...
117 rpmbuild
-ba SPECS
/wxMotif.spec
2>&1 | tee wxGTK.out
119 echo Finished wxMotif RPM build
, in $RPM_ROOT.
125 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
126 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
127 cp $WXDEST/wxmotif
/release
/*.
tar.gz
$WXDEST
128 cp $WXDEST/wxmotif
/release
/*.
tar.bz2
$WXDEST
130 echo Rearchiving wxMotif tarballs to change wxMOTIF to wxMotif...
135 tar xfz ..
/wxMOTIF
-$WXVER.
tar.gz
136 mv wxMOTIF
-$WXVER wxMotif
-$WXVER
137 rm -f ..
/wxMOTIF
-$WXVER.
tar.gz
138 rm -f ..
/wxMOTIF
-$WXVER.
tar.bz2
139 tar cf ..
/wxMotif
-$WXVER.
tar *
140 gzip -c ..
/wxMotif
-$WXVER.
tar > ..
/wxMotif
-$WXVER.
tar.gz
141 bzip2 -f9 ..
/wxMotif
-$WXVER.
tar
144 rm -f -r $WXDEST/wxmotif
146 echo Now try the RPMs with rpm
-i.
151 echo Making wxMac tarballs...
152 echo Note that this must be
done on a Mac.
153 if [ ! -d $WXDEST ]; then
157 rm -f -r $WXDEST/wxmac
159 mkdir $WXDEST/wxmac
/release
164 cd $WXDEST/wxmac
/release
166 $WXSRC/configure
--with-mac --no-recursion
168 make -j1 dist bzip
-dist-only
170 cp $WXDEST/wxmac
/release
/*.
tar.gz
$WXDEST
171 cp $WXDEST/wxmac
/release
/*.
tar.bz2
$WXDEST
173 echo Rearchiving wxMac tarballs to change wxMAC to wxMAC...
178 tar xfz ..
/wxMac
-$WXVER.
tar.gz
179 mv wxMAC
-$WXVER wxMac
-$WXVER
180 rm -f ..
/wxMAC
-$WXVER.
tar.gz
181 rm -f ..
/wxMAC
-$WXVER.
tar.bz2
182 tar cf ..
/wxMac
-$WXVER.
tar *
183 gzip -c ..
/wxMac
-$WXVER.
tar > ..
/wxMac
-$WXVER.
tar.gz
184 bzip2 -f9 ..
/wxMac
-$WXVER.
tar
188 rm -f -r $WXDEST/wxmac
189 echo Now try the RPMs with rpm
-i.
194 echo Making wxBase RPMs...
195 RPM_ROOT
=$WXDEST/wxbase
/rpm
-root
197 if [ ! -d $WXDEST ]; then
201 rm -f -r $WXDEST/wxbase
203 mkdir $WXDEST/wxbase
/release
209 cd $WXDEST/wxbase
/release
211 $WXSRC/configure
--disable-gui --no-recursion
213 make -j1 dist bzip
-dist-only
215 echo Setting up RPM build dir
$RPM_ROOT...
218 mkdir $RPM_ROOT/BUILD
220 mkdir $RPM_ROOT/RPMS
/i386
221 mkdir $RPM_ROOT/RPMS
/i686
222 mkdir $RPM_ROOT/RPMS
/noarch
223 mkdir $RPM_ROOT/SOURCES
224 mkdir $RPM_ROOT/SPECS
225 mkdir $RPM_ROOT/SRPMS
227 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
229 echo Copying wxBase
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
230 cp wxBase
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
231 echo Copying wxBase.spec to
$RPM_ROOT/SPECS...
232 cp $WXSRC/wxBase.spec
$RPM_ROOT/SPECS
234 echo Starting wxBase RPM build...
236 rpmbuild
-ba SPECS
/wxBase.spec
2>&1 | tee wxBase.out
238 echo Finished wxBase RPM build
, in $RPM_ROOT.
244 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
245 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
246 cp $WXDEST/wxbase
/release
/*.
tar.gz
$WXDEST
247 cp $WXDEST/wxbase
/release
/*.
tar.bz2
$WXDEST
249 rm -f -r $WXDEST/wxbase
250 echo Now try the RPMs with rpm
-i.
255 echo Making wxX11 RPMs...
256 RPM_ROOT
=$WXDEST/wxx
11/rpm
-root
258 if [ ! -d $WXDEST ]; then
262 rm -f -r $WXDEST/wxx11
264 mkdir $WXDEST/wxx
11/release
270 cd $WXDEST/wxx
11/release
272 $WXSRC/configure
--with-x11 --no-recursion
274 make -j1 dist bzip
-dist-only
276 echo Setting up RPM build dir
$RPM_ROOT...
279 mkdir $RPM_ROOT/BUILD
281 mkdir $RPM_ROOT/RPMS
/i386
282 mkdir $RPM_ROOT/RPMS
/i686
283 mkdir $RPM_ROOT/RPMS
/noarch
284 mkdir $RPM_ROOT/SOURCES
285 mkdir $RPM_ROOT/SPECS
286 mkdir $RPM_ROOT/SRPMS
288 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
290 echo Copying wxX11
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
291 cp wxX11
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
292 echo Copying wxX11.spec to
$RPM_ROOT/SPECS...
293 cp $WXSRC/wxX11.spec
$RPM_ROOT/SPECS
295 echo Starting wxX11 RPM build...
297 rpmbuild
-ba SPECS
/wxX11.spec
2>&1 | tee wxX11.out
299 echo Finished wxX11 RPM build
, in $RPM_ROOT.
305 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
306 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
307 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
308 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
310 rm -f -r $WXDEST/wxx11
311 echo Now try the RPMs with rpm
-i.
329 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
331 echo " --help Display this help message"
332 echo " --wxgtk Spin wxGTK RPMs"
333 echo " --wxbase Spin wxBase RPMs"
334 echo " --wxx11 Spin wxX11 RPMs"
335 echo " --wxmotif Spin wxMotif RPMs"
336 echo " --wxmac Make wxMac tarball"
337 echo " --all Spin EVERYTHING"
338 echo " --updatecvs Update from CVS"
362 # Process command line options.
366 --wxx11) SPINWXX11
=1 ;;
367 --wxgtk) SPINWXGTK
=1 ;;
368 --wxmotif) SPINWXMOTIF
=1 ;;
369 --wxmac) SPINWXMAC
=1 ;;
370 --wxbase) SPINWXBASE
=1 ;;
371 --all) SPINEVERYTHING
=1 ;;
372 --updatecvs) UPDATECVS
=1 ;;
380 echo About to
make wxWindows RPMs
:
384 echo CTRL
-C if this is not correct.
387 if [ "$UPDATECVS" = "1" ]; then
391 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
395 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
399 if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
403 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
407 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then