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
82 mv $WXDEST/wxMOTIF
-$WXVER.
tar.gz
$WXDEST/wxMotif
-$WXVER.
tar.gz
87 echo Making wxMac tarballs...
89 if [ ! -d $WXDEST ]; then
93 rm -f -r $WXDEST/wxmac
95 mkdir $WXDEST/wxmac
/release
100 cd $WXDEST/wxmac
/release
102 $WXSRC/configure
--with-mac --no-recursion
106 cp $WXDEST/wxmac
/release
/*.
tar.gz
$WXDEST
107 cp $WXDEST/wxmac
/release
/*.
tar.bz2
$WXDEST
108 mv $WXDEST/wxMAC
-$WXVER.
tar.gz
$WXDEST/wxMac
-$WXVER.
tar.gz
113 cp $WXSRC/docs
/readme.txt
$WXDEST/readme
-${WXVER}.txt
114 cp $WXSRC/docs
/changes.txt
$WXDEST/changes
-${WXVER}.txt
115 cp $WXSRC/docs
/mgl
/readme.txt
$WXDEST/readme
-mgl-${WXVER}.txt
116 cp $WXSRC/docs
/mgl
/install.txt
$WXDEST/install-mgl-${WXVER}.txt
117 cp $WXSRC/docs
/x
11/readme.txt
$WXDEST/readme
-x11-${WXVER}.txt
118 cp $WXSRC/docs
/x
11/readme
-nanox.txt
$WXDEST/readme
-nanox-${WXVER}.txt
119 cp $WXSRC/docs
/x
11/install.txt
$WXDEST/install-x11-${WXVER}.txt
120 cp $WXSRC/docs
/motif
/readme.txt
$WXDEST/readme
-motif-${WXVER}.txt
121 cp $WXSRC/docs
/motif
/install.txt
$WXDEST/install-motif-${WXVER}.txt
122 cp $WXSRC/docs
/msw
/readme.txt
$WXDEST/readme
-msw-${WXVER}.txt
123 cp $WXSRC/docs
/msw
/install.txt
$WXDEST/install-msw-${WXVER}.txt
124 cp $WXSRC/docs
/gtk
/readme.txt
$WXDEST/readme
-gtk-${WXVER}.txt
125 cp $WXSRC/docs
/gtk
/install.txt
$WXDEST/install-gtk-${WXVER}.txt
126 cp $WXSRC/docs
/mac
/readme.txt
$WXDEST/readme
-mac-${WXVER}.txt
127 cp $WXSRC/docs
/mac
/install.txt
$WXDEST/install-mac-${WXVER}.txt
128 cp $WXSRC/docs
/os
2/install.txt
$WXDEST/install-os2-${WXVER}.txt
146 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
148 echo " --help Display this help message"
149 echo " --wxgtk Spin wxGTK"
150 echo " --wxbase Spin wxBase"
151 echo " --wxx11 Spin wxX11"
152 echo " --wxmotif Spin wxMotif"
153 echo " --wxmac Spin wxMac"
154 echo " --all Spin EVERYTHING"
155 echo " --updatecvs Update from CVS"
179 # Process command line options.
183 --wxx11) SPINWXX11
=1 ;;
184 --wxgtk) SPINWXGTK
=1 ;;
185 --wxmac) SPINWXMAC
=1 ;;
186 --wxmotif) SPINWXMOTIF
=1 ;;
187 --all) SPINEVERYTHING
=1 ;;
188 --updatecvs) UPDATECVS
=1 ;;
196 echo About to
make wxWindows RPMs
:
200 echo CTRL
-C if this is not correct.
203 if [ "$UPDATECVS" = "1" ]; then
207 if [ "$SPINWXX11" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
211 if [ "$SPINWXGTK" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
215 if [ "$SPINWXMOTIF" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
219 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then