2 # Makes the wxWindows 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
177 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
179 echo " --help Display this help message"
180 echo " --wxgtk Spin wxGTK"
181 echo " --wxbase Spin wxBase"
182 echo " --wxx11 Spin wxX11"
183 echo " --wxmotif Spin wxMotif"
184 echo " --wxmac Spin wxMac"
185 echo " --all Spin EVERYTHING"
186 echo " --updatecvs Update from CVS"
210 # Process command line options.
214 --wxx11) SPINWXX11
=1 ;;
215 --wxgtk) SPINWXGTK
=1 ;;
216 --wxmac) SPINWXMAC
=1 ;;
217 --wxmotif) SPINWXMOTIF
=1 ;;
218 --all) SPINEVERYTHING
=1 ;;
219 --updatecvs) UPDATECVS
=1 ;;
227 echo About to
make wxWindows RPMs
:
231 echo CTRL
-C if this is not correct.
234 if [ "$UPDATECVS" = "1" ]; then
238 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
242 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
246 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
250 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then