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
--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 wxBase 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 echo Now try the RPMs with rpm
-i.
73 echo Making wxBase RPMs...
74 RPM_ROOT
=$WXDEST/wxbase
/rpm
-root
76 if [ ! -d $WXDEST ]; then
80 rm -f -r $WXDEST/wxbase
82 mkdir $WXDEST/wxbase
/release
88 cd $WXDEST/wxbase
/release
90 $WXSRC/configure
--disable-gui --no-recursion
92 make -j1 dist bzip
-dist-only
94 echo Setting up RPM build dir
$RPM_ROOT...
99 mkdir $RPM_ROOT/RPMS
/i386
100 mkdir $RPM_ROOT/RPMS
/i686
101 mkdir $RPM_ROOT/RPMS
/noarch
102 mkdir $RPM_ROOT/SOURCES
103 mkdir $RPM_ROOT/SPECS
104 mkdir $RPM_ROOT/SRPMS
106 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
108 echo Copying wxBase
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
109 cp wxBase
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
110 echo Copying wxBase.spec to
$RPM_ROOT/SPECS...
111 cp $WXSRC/wxBase.spec
$RPM_ROOT/SPECS
113 echo Starting wxBase RPM build...
115 rpmbuild
-ba SPECS
/wxBase.spec
2>&1 | tee wxBase.out
117 echo Finished wxBase RPM build
, in $RPM_ROOT.
123 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
124 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
125 cp $WXDEST/wxbase
/release
/*.
tar.gz
$WXDEST
126 cp $WXDEST/wxbase
/release
/*.
tar.bz2
$WXDEST
128 echo Now try the RPMs with rpm
-i.
133 echo Making wxX11 RPMs...
134 RPM_ROOT
=$WXDEST/wxx
11/rpm
-root
136 if [ ! -d $WXDEST ]; then
140 rm -f -r $WXDEST/wxx11
142 mkdir $WXDEST/wxx
11/release
148 cd $WXDEST/wxx
11/release
150 $WXSRC/configure
--with-x11 --no-recursion
152 make -j1 dist bzip
-dist-only
154 echo Setting up RPM build dir
$RPM_ROOT...
157 mkdir $RPM_ROOT/BUILD
159 mkdir $RPM_ROOT/RPMS
/i386
160 mkdir $RPM_ROOT/RPMS
/i686
161 mkdir $RPM_ROOT/RPMS
/noarch
162 mkdir $RPM_ROOT/SOURCES
163 mkdir $RPM_ROOT/SPECS
164 mkdir $RPM_ROOT/SRPMS
166 echo %_topdir
$RPM_ROOT > ~
/.rpmmacros
168 echo Copying wxX11
-$WXVER.
tar.bz2 to
$RPM_ROOT/SOURCES...
169 cp wxX11
-$WXVER.
tar.bz2
$RPM_ROOT/SOURCES
170 echo Copying wxX11.spec to
$RPM_ROOT/SPECS...
171 cp $WXSRC/wxX11.spec
$RPM_ROOT/SPECS
173 echo Starting wxX11 RPM build...
175 rpmbuild
-ba SPECS
/wxX11.spec
2>&1 | tee wxX11.out
177 echo Finished wxX11 RPM build
, in $RPM_ROOT.
183 cp $RPM_ROOT/SRPMS
/*.rpm
$WXDEST
184 cp $RPM_ROOT/RPMS
/*.rpm
$WXDEST
185 cp $WXDEST/wxx
11/release
/*.
tar.gz
$WXDEST
186 cp $WXDEST/wxx
11/release
/*.
tar.bz2
$WXDEST
188 echo Now try the RPMs with rpm
-i.
194 echo Usage
: makerpm wx
-dir output
-dir version
200 echo Usage
: makerpm wx
-dir output
-dir version
206 echo Usage
: makerpm wx
-dir output
-dir version
223 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
225 echo " --help Display this help message"
226 echo " --wxgtk Spin wxGTK RPMs"
227 echo " --wxbase Spin wxBase RPMs"
228 echo " --wxx11 Spin wxX11 RPMs"
229 echo " --all Spin EVERYTHING"
230 echo " --updatecvs Update from CVS"
235 # Process command line options.
239 --wxx11) SPINWXX11
=1 ;;
240 --wxgtk) SPINWXGTK
=1 ;;
241 --wxbase) SPINWXBASE
=1 ;;
242 --all) SPINEVERYTHING
=1 ;;
243 --updatecvs) UPDATECVS
=1 ;;
251 echo About to
make wxWindows RPMs
:
255 echo CTRL
-C if this is not correct.
258 if [ "$UPDATECVS" = "1" ]; then
262 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
266 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
270 if [ "$SPINWXBASE" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then