3 # Make a distribution of an application on MSW.
5 # ../distrib/msw/makesetup.sh --wxmsw --verbose &> | cat > log
7 # If your zip accepts Cygwin-style paths, then
8 # use cygpath, else substitute echo
23 SCRIPTDIR
=$WXWIN/distrib
/msw
24 WEBFILES
=c
:/wx
2dev
/wxWebSite
25 # Set this to the required version
28 .
$SCRIPTDIR/setup.var
35 if [ -f $thefile ]; then
36 sed -e "$theexpr" < $thefile > $thefile.tmp
37 mv $thefile.tmp
$thefile
39 echo "*** $thefile not found."
45 echo $1 | sed -e "s/\//\\\\\\\/g" > /tmp
/filename.tmp
46 RETVALUE
=`cat /tmp/filename.tmp`
47 rm -f /tmp
/filename.tmp
52 echo $1 | sed -e "s/\//\\\\/g" > /tmp
/filename.tmp
53 RETVALUE
=`cat /tmp/filename.tmp`
54 rm -f /tmp
/filename.tmp
59 if [ "$VERBOSE" != "1" ]; then
70 echo Re
-archiving $archive as
$dirname
74 if [ -d $dirname ]; then
79 unzip $ZIPFLAGS ..
/$archive
82 zip $ZIPFLAGS -r $archive $dirname/*
87 # Find the version from wx/version.h
91 echo "#include <stdio.h>" > /tmp
/appver.c
92 echo "#include \"$VERSIONSYMBOLFILE\"" >> /tmp
/appver.c
93 echo "int main() { printf(\"%.2f\", $VERSIONSYMBOL); }" >> /tmp
/appver.c
94 gcc
/tmp
/appver.c
-I$APPDIR -o /tmp
/appver
96 rm -f /tmp
/appver
/tmp
/appver.c
104 # Zip up the complete wxOS2-xxx.zip file
105 zip $ZIPFLAGS -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/generic.rsp
106 zip $ZIPFLAGS -@
-u $DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/os2.rsp
107 zip $ZIPFLAGS -@
-u $DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/jpeg.rsp
108 zip $ZIPFLAGS -@
-u $DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/tiff.rsp
109 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/tiff.rsp
110 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/jpeg.rsp
111 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/utils.rsp
112 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/tex2rtf.rsp
113 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/ogl.rsp
114 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/xml.rsp
115 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/contrib.rsp
116 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/deprecated.rsp
117 zip $ZIPFLAGS -u -@
$DESTDIR/wxOS2
-$VERSION.
zip < $APPDIR/distrib
/msw
/makefile.rsp
119 # Rearchive under wxWidgets-$VERSION
120 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
121 rm -f -r $DESTDIR/wxWidgets
-$VERSION
124 mkdir $DESTDIR/wxWidgets
-$VERSION
125 cd $DESTDIR/wxWidgets
-$VERSION
126 unzip $ZIPFLAGS ..
/wxOS2
-$VERSION.
zip
127 # No longer do this, configure should be OK
128 # echo Overwriting with OS2-specific versions of configure files...
129 # unzip $ZIPFLAGS -o $APPDIR/distrib/os2/os2-specific.zip
130 rm -f src
/gtk
/descrip.mms src
/motif
/descrip.mms docs
/pdf
/*.pdf
131 rm -f src
/tiff
/*.mcp src
/jpeg
/*.mcp src
/png
/*.mcp src
/zlib
/*.mcp
132 rm -f -r docs
/html
/tex2rtf
134 # echo Making OS/2 files lower case...
135 # no longer necessary
136 # $SCRIPTDIR/namedown include/wx/os2/*.H
137 # $SCRIPTDIR/namedown src/os2/*.CPP src/os2/*.I
139 echo Copying readme files...
140 cp $APPDIR/docs
/os
2/install.txt INSTALL
-OS2.txt
141 cp $APPDIR/docs
/licence.txt LICENCE.txt
142 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
143 cp $APPDIR/docs
/changes.txt CHANGES.txt
144 cp $APPDIR/docs
/readme.txt README.txt
148 rm -f wxOS2
-$VERSION.
zip
149 zip $ZIPFLAGS -r wxOS2
-$VERSION.
zip wxWidgets
-$VERSION/*
156 echo Zipping wxMac distribution
158 cp $APPDIR/include
/wx
/mac
/setup0.h
$APPDIR/include
/wx
/setup.h
160 zip $ZIPFLAGS -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/generic.rsp
161 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/mac.rsp
162 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/cocoa.rsp
163 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/cw_mac.rsp
164 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/tiff.rsp
165 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/jpeg.rsp
166 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/utils.rsp
167 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/tex2rtf.rsp
168 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/ogl.rsp
169 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/xml.rsp
170 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/stc.rsp
171 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/contrib.rsp
172 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/deprecated.rsp
173 zip $ZIPFLAGS -u -@
$DESTDIR/wxMac
-$VERSION.
zip < $APPDIR/distrib
/msw
/makefile.rsp
175 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-CW-Mac.
zip < $APPDIR/distrib
/msw
/cw_mac.rsp
177 rm -f $APPDIR/include
/wx
/setup.h
179 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
180 rm -f -r $DESTDIR/wxWidgets
-$VERSION
183 mkdir $DESTDIR/wxWidgets
-$VERSION
184 cd $DESTDIR/wxWidgets
-$VERSION
185 unzip $ZIPFLAGS ..
/wxMac
-$VERSION.
zip
186 rm -f src
/gtk
/descrip.mms src
/motif
/descrip.mms docs
/pdf
/*.pdf
187 rm -f -r docs
/html
/tex2rtf docs
/htmlhelp
189 echo Copying readme files...
190 cp $APPDIR/docs
/mac
/readme.txt README
-MAC.txt
191 cp $APPDIR/docs
/mac
/install.txt INSTALL
-MAC.txt
192 cp $APPDIR/docs
/licence.txt LICENCE.txt
193 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
194 cp $APPDIR/docs
/changes.txt CHANGES.txt
195 cp $APPDIR/docs
/readme.txt README.txt
199 rm -f wxMac
-$VERSION.
zip
200 zip $ZIPFLAGS -r wxMac
-$VERSION.
zip wxWidgets
-$VERSION/*
207 # Create wxWidgets-$VERSION-win.zip which is used to create wxMSW
208 echo Zipping individual components
209 rm -f $DESTDIR/wxWidgets
-$VERSION-win.
zip
210 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/generic.rsp
211 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/makefile.rsp
212 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/msw.rsp
213 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/ogl.rsp
214 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/mmedia.rsp
215 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/stc.rsp
216 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/tex2rtf.rsp
217 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/jpeg.rsp
218 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/tiff.rsp
219 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/xml.rsp
220 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/contrib.rsp
221 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/deprecated.rsp
222 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/utils.rsp
223 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/utilmake.rsp
224 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/univ.rsp
225 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/wince.rsp
226 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/dmc.rsp
228 # rearchive wxWidgets-$VERSION-win.zip wxWidgets-$VERSION $DESTDIR
230 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
231 rm -f -r $DESTDIR/wxWidgets
-$VERSION
234 mkdir $DESTDIR/wxWidgets
-$VERSION
235 cd $DESTDIR/wxWidgets
-$VERSION
236 unzip $ZIPFLAGS ..
/wxWidgets
-$VERSION-win.
zip
238 echo Removing .mms files
239 rm -f src
/gtk
/descrip.mms src
/motif
/descrip.mms
241 echo Copying readme files...
242 cp $APPDIR/docs
/msw
/readme.txt README
-MSW.txt
243 cp $APPDIR/docs
/msw
/install.txt INSTALL
-MSW.txt
244 cp $APPDIR/docs
/licence.txt LICENCE.txt
245 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
246 cp $APPDIR/docs
/changes.txt CHANGES.txt
247 cp $APPDIR/docs
/readme.txt README.txt
251 rm -f wxWidgets
-$VERSION-win.
zip
252 zip $ZIPFLAGS -r wxWidgets
-$VERSION-win.
zip wxWidgets
-$VERSION/*
259 # Create wxWidgets-$VERSION-win.zip which is used to create wxMSW
260 echo Zipping individual components
261 rm -f $DESTDIR/wxWidgets
-$VERSION-win.
zip
262 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/generic.rsp
263 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/makefile.rsp
264 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/msw.rsp
265 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/ogl.rsp
266 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/mmedia.rsp
267 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/stc.rsp
268 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/tex2rtf.rsp
269 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/jpeg.rsp
270 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/tiff.rsp
271 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/xml.rsp
272 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/contrib.rsp
273 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/deprecated.rsp
274 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/utils.rsp
275 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/utilmake.rsp
276 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/univ.rsp
277 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/wince.rsp
278 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/dmc.rsp
279 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/cw.rsp
280 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/cw_mac.rsp
282 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/x11.rsp
283 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/cocoa.rsp
284 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/motif.rsp
285 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/mac.rsp
286 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/wince.rsp
287 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/mgl.rsp
288 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-win.
zip < $APPDIR/distrib
/msw
/os2.rsp
290 # rearchive wxWidgets-$VERSION-win.zip wxWidgets-$VERSION $DESTDIR
292 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
293 rm -f -r $DESTDIR/wxWidgets
-$VERSION
296 mkdir $DESTDIR/wxWidgets
-$VERSION
297 cd $DESTDIR/wxWidgets
-$VERSION
298 unzip $ZIPFLAGS ..
/wxWidgets
-$VERSION-win.
zip
300 echo Copying readme files...
301 cp $APPDIR/docs
/licence.txt LICENCE.txt
302 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
303 cp $APPDIR/docs
/changes.txt CHANGES.txt
304 cp $APPDIR/docs
/readme.txt README.txt
308 rm -f $DESTDIR/wxWidgets
-$VERSION-win.
zip
309 zip $ZIPFLAGS -r wxAll
-$VERSION.
zip wxWidgets
-$VERSION/*
316 echo Creating
$DESTDIR/wxWidgets
-$VERSION-DocSource.
zip
317 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-DocSource.
zip < $APPDIR/distrib
/msw
/docsrc.rsp
318 rearchive wxWidgets
-$VERSION-DocSource.
zip wxWidgets
-$VERSION $DESTDIR
320 echo Creating
$DESTDIR/wxWidgets
-$VERSION-WinHelp.
zip
321 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-WinHelp.
zip < $APPDIR/distrib
/msw
/wx_hlp.rsp
322 rearchive wxWidgets
-$VERSION-WinHelp.
zip wxWidgets
-$VERSION $DESTDIR
324 echo Creating
$DESTDIR/wxWidgets
-$VERSION-HTML.
zip
325 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-HTML.
zip < $APPDIR/distrib
/msw
/wx_html.rsp
326 rearchive wxWidgets
-$VERSION-HTML.
zip wxWidgets
-$VERSION $DESTDIR
328 echo Creating
$DESTDIR/wxWidgets
-$VERSION-PDF.
zip
329 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-PDF.
zip < $APPDIR/distrib
/msw
/wx_pdf.rsp
330 rearchive wxWidgets
-$VERSION-PDF.
zip wxWidgets
-$VERSION $DESTDIR
332 # zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-Word.zip < $APPDIR/distrib/msw/wx_word.rsp
333 # rearchive wxWidgets-$VERSION-Word.zip wxWidgets-$VERSION $DESTDIR
335 echo Creating
$DESTDIR/wxWidgets
-$VERSION-HTB.
zip
336 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-HTB.
zip < $APPDIR/distrib
/msw
/wx_htb.rsp
337 rearchive wxWidgets
-$VERSION-HTB.
zip wxWidgets
-$VERSION $DESTDIR
339 echo Creating
$DESTDIR/wxWidgets
-$VERSION-HTMLHelp.
zip
340 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-HTMLHelp.
zip < $APPDIR/distrib
/msw
/wx_chm.rsp
341 rearchive wxWidgets
-$VERSION-HTMLHelp.
zip wxWidgets
-$VERSION $DESTDIR
343 # Add Linuxy docs to a separate archive to be transported to Linux for the
344 # Linux-based releases
345 echo Creating
$DESTDIR/wxWidgets
-$VERSION-LinuxDocs.
zip
346 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-LinuxDocs.
zip < $APPDIR/distrib
/msw
/wx_html.rsp
347 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-LinuxDocs.
zip < $APPDIR/distrib
/msw
/wx_pdf.rsp
348 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-LinuxDocs.
zip < $APPDIR/distrib
/msw
/wx_htb.rsp
350 # PDF/HTML docs that should go into the Windows setup because
351 # there are no WinHelp equivalents
352 echo Creating
$DESTDIR/wxWidgets
-$VERSION-ExtraDoc.
zip
353 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-ExtraDoc.
zip < $APPDIR/distrib
/msw
/extradoc.rsp
354 rearchive wxWidgets
-$VERSION-ExtraDoc.
zip wxWidgets
-$VERSION $DESTDIR
361 # zip up Univ-specific files
362 echo Creating
$DESTDIR/wxWidgets
-$VERSION-Univ.
zip
363 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-Univ.
zip < $APPDIR/distrib
/msw
/univ.rsp
364 rearchive wxWidgets
-$VERSION-Univ.
zip wxWidgets
-$VERSION $DESTDIR
367 echo Creating
$DESTDIR/wxWidgets
-$VERSION-VC.
zip
368 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-VC.
zip < $APPDIR/distrib
/msw
/vc.rsp
369 # rearchive wxWidgets-$VERSION-VC.zip wxWidgets-$VERSION $DESTDIR
371 # eVC++ project files
372 echo Creating
$DESTDIR/wxWidgets
-$VERSION-eVC.
zip
373 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-eVC.
zip < $APPDIR/distrib
/msw
/wince.rsp
374 # rearchive wxWidgets-$VERSION-eVC.zip wxWidgets-$VERSION $DESTDIR
377 echo Creating
$DESTDIR/wxWidgets
-$VERSION-DMC.
zip
378 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-DMC.
zip < $APPDIR/distrib
/msw
/dmc.rsp
379 # rearchive wxWidgets-$VERSION-DMC.zip wxWidgets-$VERSION $DESTDIR
382 echo Creating
$DESTDIR/wxWidgets
-$VERSION-BC.
zip
383 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-BC.
zip < $APPDIR/distrib
/msw
/bc.rsp
384 # rearchive wxWidgets-$VERSION-BC.zip wxWidgets-$VERSION $DESTDIR
386 # CodeWarrior project files
387 echo Creating
$DESTDIR/wxWidgets
-$VERSION-CW.
zip
388 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-CW.
zip < $APPDIR/distrib
/msw
/cw.rsp
389 # rearchive wxWidgets-$VERSION-CW.zip wxWidgets-$VERSION $DESTDIR
396 # Put all archives for transit to Linux in a zip file
397 echo Creating
$DESTDIR/wxWidgets
-$VERSION-LinuxTransit.
zip
398 rm -f $DESTDIR/wxWidgets
-$VERSION-LinuxTransit.
zip
399 zip $ZIPFLAGS $DESTDIR/wxWidgets
-$VERSION-LinuxTransit.
zip wxWidgets
-$VERSION-LinuxDocs.
zip wxWidgets
-$VERSION-VC.
zip wxWidgets
-$VERSION-DMC.
zip wxWidgets
-$VERSION-eVC.
zip wxWidgets
-$VERSION-CW-Mac.
zip
401 echo Unzipping the Windows files into wxWidgets
-$VERSION
403 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-win.
zip
404 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-VC.
zip -d wxWidgets
-$VERSION
405 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-BC.
zip -d wxWidgets
-$VERSION
406 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-CW.
zip -d wxWidgets
-$VERSION
407 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-HTMLHelp.
zip
408 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-ExtraDoc.
zip
410 # After this change of directory, we're in the
411 # temporary 'wx' directory and not acting on
412 # the source wxWidgets directory.
413 cd $DESTDIR/wxWidgets
-$VERSION
415 # Now delete a few files that are unnecessary
417 rm -f BuildCVS.txt descrip.mms
419 rm -f docs
/html
/wxbook.htm docs
/html
/roadmap.htm
420 rm -f -r contrib
/docs
/latex
/ogl
421 rm -f src
/mingegcs.bat
424 rm -f -r contrib
/utils
/wxrcedit
426 # Now cp some binary files to 'bin'
427 if [ ! -d bin
]; then
430 cp $APPDIR/bin
/tex2rtf.exe bin
431 cp $APPDIR/bin
/tex2rtf.chm bin
432 cp $APPDIR/bin
/widgets.exe bin
433 cp $APPDIR/bin
/life.exe bin
434 cp $APPDIR/demos
/life
/breeder.lif bin
435 cp $APPDIR/docs
/htmlhelp
/tex2rtf.chm bin
437 if [ ! -d docs
/pdf
]; then
440 #cp $APPDIR/docs/pdf/wxTutorial.pdf docs/pdf
444 zip $ZIPFLAGS -r wxMSW
-$VERSION.
zip wxWidgets
-$VERSION/*
445 cd wxWidgets
-$VERSION
447 echo Generating
$SETUPSCRIPTNAME
448 rm -f $SETUPSCRIPTNAME
450 sh
$SCRIPTDIR/makeinno.sh
$SETUPIMAGEDIR $INNOTOP $INNOBOTTOM $SETUPSCRIPTNAME
452 if [ ! -f $SETUPSCRIPTNAME ]; then
453 echo "*** Error - something went wrong with the script file generation."
457 # Now replace %VERSION% with the real application version, and other
459 echo Replacing variables
in the setup
script
460 doreplace
$SETUPSCRIPTNAME "s/%VERSION%/$VERSION/g"
461 doreplace
$SETUPSCRIPTNAME "s/%COPYRIGHTHOLDER%/$AUTHOR/g"
462 doreplace
$SETUPSCRIPTNAME "s/%VENDOR%/$VENDOR/g"
464 unix2dosname
$READMEFILE
465 doreplace
$SETUPSCRIPTNAME "s;%READMEFILE%;$RETVALUE;g"
467 unix2dosname
$READMEAFTERFILE
468 doreplace
$SETUPSCRIPTNAME "s;%READMEAFTERFILE%;$RETVALUE;g"
470 unix2dosname
$LICENSEFILE
471 doreplace
$SETUPSCRIPTNAME "s;%LICENSEFILE%;$RETVALUE;g"
473 doreplace
$SETUPSCRIPTNAME "s/%APPNAME%/$APPNAME/g"
474 doreplace
$SETUPSCRIPTNAME "s/%APPTITLE%/$APPTITLE/g"
476 unix2dosname
$SETUPIMAGEDIR
477 doreplace
$SETUPSCRIPTNAME "s;%SOURCEDIR%;$RETVALUE;g"
479 unix2dosname
$DESTDIR
480 doreplace
$SETUPSCRIPTNAME "s;%OUTPUTDIR%;$RETVALUE;g"
482 doreplace
$SETUPSCRIPTNAME "s/%APPEXTENSION%/$APPEXTENSION/g"
484 # FIXME: how do we get the first name in the list?
485 if [ "$MANUALFILES" != "" ]; then
486 HELPFILE
=`basename $MANUALFILES`
487 unix2dosname
$HELPFILE
488 doreplace
$SETUPSCRIPTNAME "s;%HELPFILE%;$RETVALUE;g"
491 rm -f $DESTDIR/setup
*.
*
493 # Inno Setup complains if this step is not done
494 unix2dos
--unix2dos $SETUPSCRIPTNAME
496 # Now invoke INNO compiler on the new ISS file
497 # First, make a DOS filename or Inno Setup will get confused.
499 unix2dosname2
$SETUPSCRIPTNAME
500 DOSFILENAME
=$RETVALUE
502 # Note: the double slash is Mingw32/MSYS convention for
503 # denoting a switch, that must not be converted into
504 # a path (otherwise /c = c:/)
506 cd `dirname $SETUPSCRIPTNAME`
507 BASESCRIPTNAME
=`basename $SETUPSCRIPTNAME`
508 echo Invoking Inno Setup compiler on
$BASESCRIPTNAME
510 "$SETUPCOMPILER" //cc
$BASESCRIPTNAME
512 if [ ! -f $DESTDIR/setup.exe
]; then
513 echo "*** Error - the setup.exe was not generated."
518 # mv setup.exe $APPNAME-$VERSION-setup.exe
520 echo Putting all the setup files into a single
zip archive
521 zip wxMSW
-$VERSION-setup.
zip readme
-$VERSION.txt setup
*.
*
523 rm -f wxWidgets
-$VERSION-win.
zip
524 rm -f wxWidgets
-$VERSION-ExtraDoc.
zip
526 echo If you saw no warnings or errors
, $APPTITLE was successfully spun.
532 # if [ -d $SETUPIMAGEDIR ]; then
533 # echo Removing contents of existing $SETUPIMAGEDIR
534 # rm -f -r $SETUPIMAGEDIR/*
537 if [ ! -d $SETUPIMAGEDIR ]; then
538 echo Making the
$SETUPIMAGEDIR for preparing the setup
539 mkdir -p $SETUPIMAGEDIR
543 if [ "$READMEFILE" != "" ] && [ -f $READMEFILE ]; then
544 echo Copying readme.txt
545 cp $READMEFILE $SETUPIMAGEDIR
547 # echo "*** Warning - $READMEFILE not found"
550 if [ "$LICENSEFILE" != "" ] && [ -f $LICENSEFILE ]; then
551 echo Copying licence.txt
552 cp $LICENSEFILE $SETUPIMAGEDIR
554 # echo "*** Warning - $LICENSEFILE not found"
557 if [ "$MAKEMANUAL" != "0" ]; then
558 if [ -d $MANUALDIR ]; then
562 echo "*** Warning - $MANUALDIR not found"
566 rm -f $DESTDIR/wx
*.
zip
568 rm -f $DESTDIR/ogl3
*.
zip
569 rm -f $DESTDIR/contrib
*.
zip
570 rm -f $DESTDIR/tex2rtf2
*.
zip
571 rm -f $DESTDIR/mmedia
*.
zip
572 rm -f $DESTDIR/jpeg
*.
zip
573 rm -f $DESTDIR/tiff
*.
zip
574 rm -f $DESTDIR/utils
*.
zip
575 rm -f $DESTDIR/extradoc
*.
zip
576 rm -f $DESTDIR/stc
*.
zip
577 rm -f $DESTDIR/*-win32*.
zip
578 rm -f $DESTDIR/setup
*.
*
582 if [ -d $DESTDIR/wx
]; then
586 if [ ! -d $DESTDIR ]; then
589 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
590 rm -f -r $DESTDIR/wxWidgets
-$VERSION
593 # Copy FAQ from wxWebSite CVS
594 if [ ! -d $WEBFILES ]; then
595 echo Error
- $WEBFILES does not exist
599 echo Copying FAQ and other files from
$WEBFILES
600 cp $WEBFILES/site
/faq
*.htm
$APPDIR/docs
/html
601 cp $WEBFILES/site
/platform.htm
$APPDIR/docs
/html
602 cp $WEBFILES/site
/i18n.htm
$APPDIR/docs
/html
604 # Copy setup0.h files to setup.h
605 cp $APPDIR/include
/wx
/os
2/setup0.h
$APPDIR/include
/wx
/os
2/setup.h
606 cp $APPDIR/include
/wx
/msw
/setup0.h
$APPDIR/include
/wx
/msw
/setup.h
607 cp $APPDIR/include
/wx
/univ
/setup0.h
$APPDIR/include
/wx
/univ
/setup.h
610 if [ "$SPINOS2" = "1" ] || [ "$SPINALL" = "1" ]; then
615 if [ "$SPINMAC" = "1" ] || [ "$SPINALL" = "1" ]; then
620 if [ "$SPINMSW" = "1" ] || [ "$SPINALL" = "1" ]; then
625 if [ "$SPINWXALL" = "1" ] || [ "$SPINALL" = "1" ]; then
630 if [ "$SPINDOCS" = "1" ] || [ "$SPINALL" = "1" ]; then
637 cp $APPDIR/docs
/changes.txt
$DESTDIR/changes
-$VERSION.txt
638 cp $APPDIR/docs
/readme.txt
$DESTDIR/readme
-$VERSION.txt
640 cp $APPDIR/docs
/msw
/readme.txt
$DESTDIR/readme
-msw-$VERSION.txt
641 cp $APPDIR/docs
/msw
/install.txt
$DESTDIR/install-msw-$VERSION.txt
643 cp $APPDIR/docs
/mac
/readme.txt
$DESTDIR/readme
-mac-$VERSION.txt
644 cp $APPDIR/docs
/mac
/install.txt
$DESTDIR/install-mac-$VERSION.txt
646 cp $APPDIR/docs
/motif
/readme.txt
$DESTDIR/readme
-motif-$VERSION.txt
647 cp $APPDIR/docs
/motif
/install.txt
$DESTDIR/install-motif-$VERSION.txt
649 cp $APPDIR/docs
/gtk
/readme.txt
$DESTDIR/readme
-gtk-$VERSION.txt
650 cp $APPDIR/docs
/gtk
/install.txt
$DESTDIR/install-gtk-$VERSION.txt
652 cp $APPDIR/docs
/x
11/readme.txt
$DESTDIR/readme
-x11-$VERSION.txt
653 # cp $APPDIR/docs/x11/readme-nanox.txt $DESTDIR/readme-nanox-$VERSION.txt
654 cp $APPDIR/docs
/x
11/install.txt
$DESTDIR/install-x11-$VERSION.txt
656 cp $APPDIR/docs
/mgl
/readme.txt
$DESTDIR/readme
-mgl-$VERSION.txt
657 cp $APPDIR/docs
/mgl
/install.txt
$DESTDIR/install-mgl-$VERSION.txt
659 cp $APPDIR/docs
/cocoa
/readme.txt
$DESTDIR/readme
-cocoa-$VERSION.txt
660 cp $APPDIR/docs
/cocoa
/install.txt
$DESTDIR/install-cocoa-$VERSION.txt
662 cp $APPDIR/docs
/base
/readme.txt
$DESTDIR/readme
-base-$VERSION.txt
664 cp $APPDIR/docs
/os
2/install.txt
$DESTDIR/install-os2-$VERSION.txt
666 cp $APPDIR/docs
/univ
/readme.txt
$DESTDIR/readme
-univ-$VERSION.txt
668 cp $APPDIR/docs
/readme_vms.txt
$DESTDIR/readme
-vms-$VERSION.txt
670 # cp $APPDIR/docs/motif/makewxmotif $DESTDIR/makewxmotif-$VERSION
671 # cp $APPDIR/docs/gtk/makewxgtk $DESTDIR/makewxgtk-$VERSION
673 # Time to regenerate the Inno Install script
674 if [ "$INNO" != "0" ]; then
679 # We can't use e.g. this:
680 # ls `cat $SRC/distrib/msw/makefile.rsp` zip -@ -u $DEST/wxWidgets-$VERSION-gen.zip
681 # because there's not enough space on the command line, plus we need to ignore the
683 # So if we need to (not in this script so far) we do something like this instead:
684 # expandlines $SRC/setup/files.rsp temp.txt
685 # zip -@ `$CYGPATHPROG -w $DEST/archive.zip` < temp.txt
694 for line
in `cat $toexpand` ; do
695 if [ $line != "" ]; then
696 ls $line >> $outputfile
703 echo "Usage: $PROGNAME [ options ]" 1>&2
705 echo " --help Display this help message"
706 echo " --upx Compress executable with UPX"
707 echo " --no-upx Do not compress executable with UPX"
708 echo " --inno Build the setup.exe"
709 echo " --no-inno Do not build the setup.exe"
710 echo " --wxmac Build wxMac distribution"
711 echo " --wxmsw Build wxMSW distribution"
712 echo " --wxos2 Build wxOS2 distribution"
713 echo " --wxall Build wxAll zip distribution"
714 echo " --docs Build docs archives"
715 echo " --all Build all distributions (the default)"
716 echo " --verbose Verbose zip operation"
718 echo Note that options only override settings
in $SCRIPTDIR/setup.var.
722 # Process command line options.
730 --wxmac) SPINMAC
=1; SPINALL
=0 ;;
731 --wxmsw) SPINMSW
=1; SPINALL
=0 ;;
732 --wxos2) SPINOS2
=1; SPINALL
=0 ;;
733 --wxall) SPINWXALL
=1; SPINALL
=0 ;;
734 --docs) SPINDOCS
=1; SPINALL
=0 ;;
736 --verbose) VERBOSE
=1 ;;