2 # tardist: make up a tar.gz distribution of wxWidgets 2
3 # Supply a source (e.g. ~/wx2) and destination (e.g. ~/wx2/deliver)
5 # We can't use e.g. this:
6 # ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWidgets-$VERSION-gen.zip
7 # because there's not enough space on the command line, plus we need to ignore the
15 # for docopyreadmefiles and docopysetup_h
16 SCRIPTDIR
=$WXSRC/distrib
/scripts
17 .
$SCRIPTDIR/utils.inc
21 if [ "$ARCH" = "ppc" ]; then
32 for line
in `cat $toexpand` ; do
33 if [ "$line" != "" ]; then
34 ls $line >> $outputfile
36 uniq < $outputfile > /tmp
/uniqtemp.txt
37 mv /tmp
/uniqtemp.txt
$outputfile
44 echo Removing backup files...
45 rm *~
*/*~
*/*/*~
*/*/*/*~
*/*/*/*/*~
47 rm -f $WXDEST/wx
*-${WXVER}*.
tar.gz
49 cp $WXSRC/include
/wx
/msw
/setup0.h
$WXSRC/include
/wx
/msw
/setup.h
50 cp $WXSRC/include
/wx
/univ
/setup0.h
$WXSRC/include
/wx
/univ
/setup.h
52 # Copy readme and other files
53 docopydocs
$WXSRC $WXDEST
64 cp $WXSRC/include
/wx
/mac
/setup0.h
$WXSRC/include
/wx
/setup.h
65 cp $WXSRC/include
/wx
/mac
/setup0.h
$WXSRC/include
/wx
/mac
/setup.h
67 cat $SCRIPTDIR/manifests
/mac.rsp
$SCRIPTDIR/manifests
/cocoa.rsp
$SCRIPTDIR/manifests
/generic.rsp
$SCRIPTDIR/manifests
/cw_mac.rsp
$SCRIPTDIR/manifests
/tex2rtf.rsp
$SCRIPTDIR/manifests
/utils.rsp
$SCRIPTDIR/manifests
/ogl.rsp
$SCRIPTDIR/manifests
/stc.rsp
$SCRIPTDIR/manifests
/xml.rsp
$SCRIPTDIR/manifests
/contrib.rsp
$SCRIPTDIR/manifests
/deprecated.rsp
$SCRIPTDIR/manifests
/makefile.rsp
$SCRIPTDIR/manifests
/tiff.rsp
$SCRIPTDIR/manifests
/jpeg.rsp
> /tmp
/wxmac_in.txt
68 expandlines
/tmp
/wxmac_in.txt
/tmp
/wxmac.txt
69 $TAR cf
$WXDEST/wxMac
-${WXVER}.
tar -T /tmp
/wxmac.txt
71 rm -f $WXSRC/include
/wx
/setup.h
73 echo Re
-tarring wxMac
in a subdirectory...
78 $TAR xf ..
/wxMac
-${WXVER}.
tar
79 rm -f -r contrib
/src
/mmedia contrib
/samples
/mmedia
80 echo Copying readme files...
81 cp $WXSRC/docs
/mac
/readme.txt README
-MAC.txt
82 cp $WXSRC/docs
/mac
/install.txt INSTALL
-MAC.txt
85 rm -f wxMac
-${WXVER}.
tar
86 $TAR cf
$WXDEST/wxMac
-${WXVER}.
tar wxMac
-${WXVER}/*
87 rm -f -r wxMac
-${WXVER}
88 gzip $WXDEST/wxMac
-${WXVER}.
tar
91 ### wxUniv: universal-specific files
93 #cat $SCRIPTDIR/manifests/univ.rsp > /tmp/wxuniv_in.txt
94 #expandlines /tmp/wxuniv_in.txt /tmp/wxuniv.txt
95 #$TAR cf $WXDEST/wxWidgets-${WXVER}-Univ.tar -T /tmp/wxuniv.txt
97 #echo Re-tarring wxUniversal in a subdirectory...
99 #mkdir wxWidgets-${WXVER}
100 #cd wxWidgets-${WXVER}
101 #$TAR xf ../wxWidgets-${WXVER}-Univ.tar
103 #rm -f wxWidgets-${WXVER}-Univ.tar
104 #$TAR cf $WXDEST/wxWidgets-${WXVER}-Univ.tar wxWidgets-${WXVER}/*
105 #rm -f -r wxWidgets-${WXVER}
106 #gzip $WXDEST/wxWidgets-${WXVER}-Univ.tar
110 echo Tarring wxAll...
112 ### wxAll: all distributions in one giant archive
114 cat $SCRIPTDIR/manifests
/generic.rsp
$SCRIPTDIR/manifests
/msw.rsp
$SCRIPTDIR/manifests
/wince.rsp
$SCRIPTDIR/manifests
/vc.rsp
$SCRIPTDIR/manifests
/cw.rsp
$SCRIPTDIR/manifests
/cw_mac.rsp
$SCRIPTDIR/manifests
/gtk.rsp
$SCRIPTDIR/manifests
/x11.rsp
$SCRIPTDIR/manifests
/motif.rsp
$SCRIPTDIR/manifests
/mac.rsp
$SCRIPTDIR/manifests
/cocoa.rsp
$SCRIPTDIR/manifests
/os2.rsp
$SCRIPTDIR/manifests
/palmos.rsp
$SCRIPTDIR/manifests
/x11.rsp
$SCRIPTDIR/manifests
/univ.rsp
$SCRIPTDIR/manifests
/mgl.rsp
$SCRIPTDIR/manifests
/contrib.rsp
$SCRIPTDIR/manifests
/deprecated.rsp
$SCRIPTDIR/manifests
/utilmake.rsp
$SCRIPTDIR/manifests
/utils.rsp
$SCRIPTDIR/manifests
/mmedia.rsp
$SCRIPTDIR/manifests
/tex2rtf.rsp
$SCRIPTDIR/manifests
/stc.rsp
$SCRIPTDIR/manifests
/xml.rsp
$SCRIPTDIR/manifests
/ogl.rsp
$SCRIPTDIR/manifests
/makefile.rsp
$SCRIPTDIR/manifests
/tiff.rsp
$SCRIPTDIR/manifests
/jpeg.rsp
$SCRIPTDIR/manifests
/docsrc.rsp
| uniq > /tmp
/wxall_in.txt
115 expandlines
/tmp
/wxall_in.txt
/tmp
/wxall.txt
116 $TAR cf
$WXDEST/wxWidgets
-${WXVER}.
tar -T /tmp
/wxall.txt
118 echo Re
-tarring wxAll
in a subdirectory...
120 mkdir wxWidgets
-${WXVER}
122 cd wxWidgets
-${WXVER}
124 # If we have the full set of VC++ project files,
126 if [ -f $WXDEST/extra
/wxWidgets
-${WXVER}-VC.
zip ]; then
127 unzip -o $WXDEST/extra
/wxWidgets
-${WXVER}-VC.
zip
129 echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-VC.zip"
132 # If we have the full set of eVC++ project files,
134 if [ -f $WXDEST/extra
/wxWidgets
-${WXVER}-eVC.
zip ]; then
135 unzip -o $WXDEST/extra
/wxWidgets
-${WXVER}-eVC.
zip
137 echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-eVC.zip"
140 # If we have the full set of DMC project files,
142 if [ -f $WXDEST/extra
/wxWidgets
-${WXVER}-DMC.
zip ]; then
143 unzip -o $WXDEST/extra
/wxWidgets
-${WXVER}-DMC.
zip
145 echo "Warning - did not find $WXDEST/deliver/extra/wxWidgets-${WXVER}-DMC.zip"
148 $TAR xf ..
/wxWidgets
-${WXVER}.
tar
150 # Translate all .dsp and .dsw files to DOS format
151 unix2dos
--unix2dos `cat $SCRIPTDIR/manifests/vc.rsp`
154 rm -f wxWidgets
-${WXVER}.
tar
155 $TAR cf
$WXDEST/wxWidgets
-${WXVER}.
tar wxWidgets
-${WXVER}/*
156 rm -f -r wxWidgets
-${WXVER}
157 gzip -c $WXDEST/wxWidgets
-${WXVER}.
tar > $WXDEST/wxWidgets
-${WXVER}.
tar.gz
158 bzip2 $WXDEST/wxWidgets
-${WXVER}.
tar
163 mkdir -p $WXSRC/docs
/html
/wx
164 mkdir -p $WXSRC/docs
/html
/tex2rtf
165 mkdir -p $WXSRC/docs
/html
/fl
166 mkdir -p $WXSRC/docs
/html
/ogl
167 mkdir -p $WXSRC/docs
/htb
169 rm -f -r $WXSRC/docs
/html
/wx
/*.htm
*
170 rm -f -r $WXSRC/docs
/htb
/wx.htb
172 echo Making HTML wxWidgets manual...
173 cd $WXSRC/docs
/latex
/wx
174 cp *.gif
$WXSRC/docs
/html
/wx
175 tex2rtf manual.tex
$WXSRC/docs
/html
/wx
/wx.htm
-twice -html
177 echo Making HTB wxWidgets manual...
178 cd $WXSRC/docs
/html
/wx
179 zip -q $WXSRC/docs
/htb
/wx.htb
*.html
*.gif
*.hhp
*.hhc
*.hhk
181 echo Done making manuals.
187 echo Usage
: tardist wx
-dir output
-dir version
193 echo Usage
: tardist wx
-dir output
-dir version
199 echo Usage
: tardist wx
-dir output
-dir version
209 echo Usage
: $PROGNAME "src-dir dest-dir version-number [ options ]"
211 echo " --help Display this help message"
212 echo " --wxall Spin wxAll"
213 echo " --wxmac Spin wxMac"
214 echo " --all Spin EVERYTHING"
219 # Process command line options.
223 --wxall) SPINWXALL
=1 ;;
224 --wxmac) SPINWXMAC
=1 ;;
225 --all) SPINEVERYTHING
=1 ;;
234 echo About to archive wxWidgets
:
238 echo CTRL
-C if this is not correct.
243 if [ "$SPINWXMAC" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then
247 if [ "$SPINWXALL" = "1" ] || [ "$SPINEVERYTHING" = "1" ]; then