3 # Make a distribution of an application on MSW.
5 # ../distrib/msw/makesetup.sh --wxmsw --verbose &> log
7 # If your zip accepts Cygwin-style paths, then
8 # use cygpath, else substitute echo
24 SCRIPTDIR
=$WXWIN/distrib
/scripts
25 .
$SCRIPTDIR/msw
/setup.var
26 .
$SCRIPTDIR/utils.inc
28 MANIFESTDIR
=$SCRIPTDIR/manifests
29 WEBFILES
=c
:/wx
2dev
/wxWebSite
30 if [ ! "$CYGPATH" = "" ]; then
31 WEBFILES
=`$CYGPATH "$WEBFILES"`
34 # Set this to the required version
35 if [ "$VERSION" = "" ]; then
44 contribfiles
="stc.rsp contrib.rsp ogl.rsp"
45 utilsfiles
="tex2rtf.rsp utils.rsp utilmake.rsp"
46 commonfiles
="generic.rsp jpeg.rsp tiff.rsp xml.rsp deprecated.rsp makefile.rsp $utilsfiles $contribfiles"
48 if [ ! $port = "base" ]; then
49 filelist
="$filelist $commonfiles"
52 if [ $port = "msw" || $port = "all" ]; then
53 filelist
="$filelist msw.rsp univ.rsp vc.rsp mmedia.rsp wince.rsp palmos.rsp"
56 if [ $port = "os2" || $port = "all" ]; then
57 filelist
="$filelist os2.rsp"
60 if [ $port = "all" ]; then
61 filelist
="$filelist x11.rsp gtk.rsp cocoa.rsp motif.rsp mac.rsp mgl.rsp"
64 tempfile
="/tmp/$portfiles.in"
71 cat $filelist > $tempfile
74 expandlines
$tempfile $outfile
84 if [ -f $thefile ]; then
85 sed -e "$theexpr" < $thefile > $thefile.tmp
86 mv $thefile.tmp
$thefile
88 echo "*** $thefile not found."
94 echo $1 | sed -e "s/\//\\\\\\\/g" > /tmp
/filename.tmp
95 RETVALUE
=`cat /tmp/filename.tmp`
96 rm -f /tmp
/filename.tmp
101 echo $1 | sed -e "s/\//\\\\/g" > /tmp
/filename.tmp
102 RETVALUE
=`cat /tmp/filename.tmp`
103 rm -f /tmp
/filename.tmp
108 if [ "$VERBOSE" != "1" ]; then
119 echo Re
-archiving $archive as
$dirname
123 if [ -d $dirname ]; then
128 unzip $ZIPFLAGS ..
/$archive
131 zip $ZIPFLAGS -r $archive $dirname/*
142 echo Re
-tarring $archive as
$dirname
146 if [ -d $dirname ]; then
154 tar cfz
$archive $dirname/*
159 # Find the version from wx/version.h
163 echo "#include <stdio.h>" > /tmp
/appver.c
164 echo "#include \"$VERSIONSYMBOLFILE\"" >> /tmp
/appver.c
165 echo "int main() { printf(\"%.2f\", $VERSIONSYMBOL); }" >> /tmp
/appver.c
166 gcc
/tmp
/appver.c
-I$APPDIR -o /tmp
/appver
167 VERSION
=`/tmp/appver`
168 rm -f /tmp
/appver
/tmp
/appver.c
176 getfilelist
"os2" /tmp
/os2files
178 # Zip up the complete wxOS2-xxx.zip file
179 zip $ZIPFLAGS -@
$DESTDIR/wxOS2
-$VERSION.
zip < /tmp
/os2files
181 # Rearchive under wxWidgets-$VERSION
182 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
183 rm -f -r $DESTDIR/wxWidgets
-$VERSION
186 mkdir $DESTDIR/wxWidgets
-$VERSION
187 cd $DESTDIR/wxWidgets
-$VERSION
188 unzip $ZIPFLAGS ..
/wxOS2
-$VERSION.
zip
190 echo Copying readme files...
191 cp $APPDIR/docs
/os
2/install.txt INSTALL
-OS2.txt
195 rm -f wxOS2
-$VERSION.
zip
196 zip $ZIPFLAGS -r wxOS2
-$VERSION.
zip wxWidgets
-$VERSION/*
201 echo Zipping wxMSW...
205 # now expand the wildcards to actual file names
206 getfilelist
"msw" /tmp
/mswfiles
208 # Create wxWidgets-$VERSION-win.zip which is used to create wxMSW
209 echo Zipping individual components
210 rm -f $DESTDIR/wxWidgets
-$VERSION-win.
zip
211 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-win.
zip < /tmp
/mswfiles
216 echo Zipping wxAll...
219 echo Zipping individual components
220 rm -f $DESTDIR/wxWidgets
-$VERSION-all.
zip
222 # Save adding all the wxMSW files again
223 if [ ! -f $DESTDIR/wxWidgets
-$VERSION-win.
zip ]; then
226 cp $DESTDIR/wxWidgets
-$VERSION-win.
zip $DESTDIR/wxWidgets
-$VERSION-all.
zip
228 cat $MANIFESTDIR/cw_mac.rsp
$MANIFESTDIR/vc.rsp
$MANIFESTDIR/x11.rsp
$MANIFESTDIR/gtk.rsp
$MANIFESTDIR/cocoa.rsp
$MANIFESTDIR/motif.rsp
$MANIFESTDIR/mac.rsp
$MANIFESTDIR/mgl.rsp
$MANIFESTDIR/os2.rsp
$MANIFESTDIR/palmos.rsp
| sort | uniq > /tmp
/all.txt
229 zip $ZIPFLAGS -@
-u $DESTDIR/wxWidgets
-$VERSION-all.
zip < /tmp
/all.txt
231 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
232 rm -f -r $DESTDIR/wxWidgets
-$VERSION
235 mkdir $DESTDIR/wxWidgets
-$VERSION
236 cd $DESTDIR/wxWidgets
-$VERSION
237 unzip $ZIPFLAGS ..
/wxWidgets
-$VERSION-all.
zip
241 rm -f $DESTDIR/wxWidgets
-$VERSION-all.
zip
242 zip $ZIPFLAGS -r wxWidgets
-$VERSION.
zip wxWidgets
-$VERSION/*
249 echo Zipping wxBase...
250 rm -f $DESTDIR/wxBase
-$VERSION.
zip
251 expandlines
$MANIFESTDIR/base.rsp
/tmp
/basefiles
252 zip $ZIPFLAGS -@
$DESTDIR/wxBase
-$VERSION.
zip < /tmp
/basefiles
254 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
255 rm -f -r $DESTDIR/wxWidgets
-$VERSION
258 mkdir $DESTDIR/wxWidgets
-$VERSION
259 cd $DESTDIR/wxWidgets
-$VERSION
260 unzip $ZIPFLAGS ..
/wxBase
-$VERSION.
zip
262 echo Copying readme files...
263 cp $APPDIR/docs
/base
/readme.txt README.txt
267 rm -f wxBase
-$VERSION.
zip
268 zip $ZIPFLAGS -r wxBase
-$VERSION.
zip wxWidgets
-$VERSION/*
275 echo Creating
$DESTDIR/wxWidgets
-$VERSION-DocSource.
zip
276 expandlines
$MANIFESTDIR/docsrc.rsp
/tmp
/docsources
277 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-DocSource.
zip < /tmp
/docsources
278 rearchive wxWidgets
-$VERSION-DocSource.
zip wxWidgets
-$VERSION $DESTDIR
280 echo Creating
$DESTDIR/wxWidgets
-$VERSION-WinHelp.
zip
281 expandlines
$MANIFESTDIR/wx_hlp.rsp
/tmp
/winhelp
282 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-WinHelp.
zip < /tmp
/winhelp
283 rearchive wxWidgets
-$VERSION-WinHelp.
zip wxWidgets
-$VERSION $DESTDIR
285 echo Creating
$DESTDIR/wxWidgets
-$VERSION-HTML.
zip
286 expandlines
$MANIFESTDIR/wx_html.rsp
/tmp
/htmldocs
287 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-HTML.
zip < /tmp
/htmldocs
288 rearchive wxWidgets
-$VERSION-HTML.
zip wxWidgets
-$VERSION $DESTDIR
290 echo Creating
$DESTDIR/wxWidgets
-$VERSION-PDF.
zip
291 expandlines
$MANIFESTDIR/wx_pdf.rsp
/tmp
/pdfdocs
292 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-PDF.
zip < /tmp
/pdfdocs
293 rearchive wxWidgets
-$VERSION-PDF.
zip wxWidgets
-$VERSION $DESTDIR
295 echo Creating
$DESTDIR/wxWidgets
-$VERSION-PDF.
tar.gz
296 tar zcf
/c
/wx
2dev
/wxWindows
/deliver
/wxWidgets
-$VERSION-PDF.
tar.gz docs
/pdf
/*.pdf
297 rearchivetar wxWidgets
-$VERSION-PDF.
tar.gz wxWidgets
-$VERSION /c
/wx
2dev
/wxWindows
/deliver
299 echo Creating
$DESTDIR/wxWidgets
-$VERSION-HTB.
zip
300 expandlines
$MANIFESTDIR/wx_htb.rsp
/tmp
/htbdocs
301 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-HTB.
zip < /tmp
/htbdocs
302 rearchive wxWidgets
-$VERSION-HTB.
zip wxWidgets
-$VERSION $DESTDIR
304 echo Creating
$DESTDIR/wxWidgets
-$VERSION-HTMLHelp.
zip
305 expandlines
$MANIFESTDIR/wx_chm.rsp
/tmp
/chmdocs
306 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-HTMLHelp.
zip < /tmp
/chmdocs
307 rearchive wxWidgets
-$VERSION-HTMLHelp.
zip wxWidgets
-$VERSION $DESTDIR
309 # Add Linuxy docs to a separate archive to be transported to Linux for the
310 # Linux-based releases
311 echo Creating
$DESTDIR/wxWidgets
-$VERSION-LinuxDocs.
zip
313 cat $MANIFESTDIR/wx_html.rsp
$MANIFESTDIR/wx_pdf.rsp
$MANIFESTDIR/wx_htb.rsp
> /tmp
/linuxdocs.
in
314 expandlines
/tmp
/linuxdocs.
in /tmp
/linuxdocs
316 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-LinuxDocs.
zip < /tmp
/linuxdocs
318 # PDF/HTML docs that should go into the Windows setup because
319 # there are no WinHelp equivalents
320 echo Creating
$DESTDIR/wxWidgets
-$VERSION-ExtraDoc.
zip
321 expandlines
$SCRIPT/extradoc.rsp
/tmp
/extradocs
322 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-ExtraDoc.
zip < /tmp
/extradocs
323 rearchive wxWidgets
-$VERSION-ExtraDoc.
zip wxWidgets
-$VERSION $DESTDIR
330 # zip up Univ-specific files
331 echo Creating
$DESTDIR/wxWidgets
-$VERSION-Univ.
zip
332 expandlines
$MANIFESTDIR/univ.rsp
/tmp
/univfiles
333 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-Univ.
zip < /tmp
/univfiles
334 rearchive wxWidgets
-$VERSION-Univ.
zip wxWidgets
-$VERSION $DESTDIR
337 echo Creating
$DESTDIR/wxWidgets
-$VERSION-DMC.
zip
338 expandlines
$MANIFESTDIR/dmc.rsp
/tmp
/dmcfiles
339 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-DMC.
zip < /tmp
/dmcfiles
340 rearchive wxWidgets
-$VERSION-DMC.
zip wxWidgets
-$VERSION $DESTDIR
343 echo Creating
$DESTDIR/wxWidgets
-$VERSION-BC.
zip
344 expandlines
$MANIFESTDIR/bc.rsp
/tmp
/bcfiles
345 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets
-$VERSION-BC.
zip < /tmp
/bcfiles
346 rearchive wxWidgets
-$VERSION-BC.
zip wxWidgets
-$VERSION $DESTDIR
354 upperport
="`echo $port|tr '[a-z]' '[A-Z]'`"
355 echo "Zipping wx$upperport..."
358 getfilelist
"$port" "/tmp/$port_filelist"
360 mkdir -p /tmp
/wx
$port/wxWidgets
-$VERSION
362 for line
in `cat /tmp/$port_filelist` ; do
363 mkdir -p `dirname $line`
364 cp -r $line /tmp
/wx
$port/wxWidgets
-$VERSION
367 cd /tmp
/wxWidgets
-$VERSION
369 echo Copying readme files...
370 cp $APPDIR/docs
/msw
/readme.txt README
-MSW.txt
371 cp $APPDIR/docs
/msw
/install.txt INSTALL
-MSW.txt
372 cp $APPDIR/docs
/licence.txt LICENCE.txt
373 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
374 cp $APPDIR/docs
/changes.txt CHANGES.txt
375 cp $APPDIR/docs
/readme.txt README.txt
377 zip $ZIPFLAGS -r -@
$DESTDIR/wx
$upperport-$VERSION.
zip /tmp
/wx
$port/wxWidgets
-$VERSION
384 # Put all archives for transit to Linux in a zip file
385 echo Creating
$DESTDIR/wxWidgets
-$VERSION-LinuxTransit.
zip
386 rm -f $DESTDIR/wxWidgets
-$VERSION-LinuxTransit.
zip
387 zip $ZIPFLAGS $DESTDIR/wxWidgets
-$VERSION-LinuxTransit.
zip wxWidgets
-$VERSION-LinuxDocs.
zip wxWidgets
-$VERSION-DMC.
zip
389 rm -f -r wxWidgets
-$VERSION
391 echo Unzipping the Windows files into wxWidgets
-$VERSION
393 mkdir -p wxWidgets
-$VERSION
395 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-win.
zip -d wxWidgets
-$VERSION
396 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-DMC.
zip -d wxWidgets
-$VERSION
397 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-BC.
zip -d wxWidgets
-$VERSION
399 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-HTMLHelp.
zip
400 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-ExtraDoc.
zip
402 # After this change of directory, we're in the
403 # temporary 'wx' directory and not acting on
404 # the source wxWidgets directory.
405 cd $DESTDIR/wxWidgets
-$VERSION
407 # Now delete a few files that are unnecessary
409 rm -f BuildCVS.txt descrip.mms
411 rm -f docs
/html
/wxbook.htm docs
/html
/roadmap.htm
412 rm -f -r contrib
/docs
/latex
/ogl
413 rm -f src
/mingegcs.bat
416 rm -f src
/gtk
/descrip.mms src
/motif
/descrip.mms
418 echo Copying readme files...
419 cp $APPDIR/docs
/msw
/readme.txt README
-MSW.txt
420 cp $APPDIR/docs
/msw
/install.txt INSTALL
-MSW.txt
421 cp $APPDIR/docs
/licence.txt LICENCE.txt
422 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
423 cp $APPDIR/docs
/changes.txt CHANGES.txt
424 cp $APPDIR/docs
/readme.txt README.txt
426 # Disabled for now - Now cp some binary files to 'bin'
427 if [ ! -d bin
]; then
431 cp $APPDIR/bin
/tex2rtf.exe bin
432 cp $APPDIR/bin
/tex2rtf.chm bin
433 cp $APPDIR/bin
/widgets.exe bin
434 cp $APPDIR/bin
/life.exe bin
435 cp $APPDIR/demos
/life
/breeder.lif bin
436 cp $APPDIR/docs
/htmlhelp
/tex2rtf.chm bin
438 if [ ! -d docs
/pdf
]; then
441 #cp $APPDIR/docs/pdf/wxTutorial.pdf docs/pdf
445 zip $ZIPFLAGS -r wxMSW
-$VERSION.
zip wxWidgets
-$VERSION/*
446 cd wxWidgets
-$VERSION
448 if [ "$INNO" != "0" ]; then
449 echo Generating
$SETUPSCRIPTNAME
450 rm -f $SETUPSCRIPTNAME
452 sh
$SCRIPTDIR/msw
/makeinno.sh
$SETUPIMAGEDIR $INNOTOP $INNOBOTTOM $SETUPSCRIPTNAME
454 if [ ! -f $SETUPSCRIPTNAME ]; then
455 echo "*** Error - something went wrong with the script file generation."
459 # Now replace %VERSION% with the real application version, and other
461 echo Replacing variables
in the setup
script
462 doreplace
$SETUPSCRIPTNAME "s/%VERSION%/$VERSION/g"
463 doreplace
$SETUPSCRIPTNAME "s/%COPYRIGHTHOLDER%/$AUTHOR/g"
464 doreplace
$SETUPSCRIPTNAME "s/%VENDOR%/$VENDOR/g"
466 unix2dosname
$READMEFILE
467 doreplace
$SETUPSCRIPTNAME "s;%READMEFILE%;$RETVALUE;g"
469 unix2dosname
$READMEAFTERFILE
470 doreplace
$SETUPSCRIPTNAME "s;%READMEAFTERFILE%;$RETVALUE;g"
472 unix2dosname
$LICENSEFILE
473 doreplace
$SETUPSCRIPTNAME "s;%LICENSEFILE%;$RETVALUE;g"
475 doreplace
$SETUPSCRIPTNAME "s/%APPNAME%/$APPNAME/g"
476 doreplace
$SETUPSCRIPTNAME "s/%APPTITLE%/$APPTITLE/g"
478 unix2dosname
$SETUPIMAGEDIR
479 doreplace
$SETUPSCRIPTNAME "s;%SOURCEDIR%;$RETVALUE;g"
481 unix2dosname
$DESTDIR
482 doreplace
$SETUPSCRIPTNAME "s;%OUTPUTDIR%;$RETVALUE;g"
484 doreplace
$SETUPSCRIPTNAME "s/%APPEXTENSION%/$APPEXTENSION/g"
486 # FIXME: how do we get the first name in the list?
487 if [ "$MANUALFILES" != "" ]; then
488 HELPFILE
=`basename $MANUALFILES`
489 unix2dosname
$HELPFILE
490 doreplace
$SETUPSCRIPTNAME "s;%HELPFILE%;$RETVALUE;g"
493 rm -f $DESTDIR/setup
*.
* $DESTDIR/wxMSW
-$VERSION-Setup.exe
495 # Inno Setup complains if this step is not done
496 unix2dos
--unix2dos $SETUPSCRIPTNAME
498 # Now invoke INNO compiler on the new ISS file
499 # First, make a DOS filename or Inno Setup will get confused.
501 unix2dosname2
$SETUPSCRIPTNAME
502 DOSFILENAME
=$RETVALUE
504 # Note: the double slash is Mingw32/MSYS convention for
505 # denoting a switch, that must not be converted into
506 # a path (otherwise /c = c:/)
508 cd `dirname $SETUPSCRIPTNAME`
509 BASESCRIPTNAME
=`basename $SETUPSCRIPTNAME`
510 echo Invoking Inno Setup compiler on
$BASESCRIPTNAME
512 "$SETUPCOMPILER" //cc
$BASESCRIPTNAME
514 if [ ! -f $DESTDIR/setup.exe
]; then
515 echo "*** Error - the setup.exe was not generated."
520 mv setup.exe wxMSW
-$VERSION-Setup.exe
523 # echo Putting all the setup files into a single zip archive
524 # zip wxMSW-$VERSION-setup.zip readme-$VERSION.txt setup*.*
526 rm -f wxWidgets
-$VERSION-win.
zip
527 rm -f wxWidgets
-$VERSION-ExtraDoc.
zip
528 rm -f wxWidgets
-$VERSION-DMC.
zip
529 rm -f wxWidgets
-$VERSION-Univ.
zip
530 rm -f wxWidgets
-$VERSION-DocSource.
zip
531 rm -f wxWidgets
-$VERSION-LinuxDocs.
zip
533 echo If you saw no warnings or errors
, $APPTITLE was successfully spun.
539 # if [ -d $SETUPIMAGEDIR ]; then
540 # echo Removing contents of existing $SETUPIMAGEDIR
541 # rm -f -r $SETUPIMAGEDIR/*
544 if [ ! -d $SETUPIMAGEDIR ]; then
545 echo Making the
$SETUPIMAGEDIR for preparing the setup
546 mkdir -p $SETUPIMAGEDIR
550 if [ "$READMEFILE" != "" ] && [ -f $READMEFILE ]; then
551 echo Copying readme.txt
552 cp $READMEFILE $SETUPIMAGEDIR
554 # echo "*** Warning - $READMEFILE not found"
557 if [ "$LICENSEFILE" != "" ] && [ -f $LICENSEFILE ]; then
558 echo Copying licence.txt
559 cp $LICENSEFILE $SETUPIMAGEDIR
561 # echo "*** Warning - $LICENSEFILE not found"
564 if [ "$MAKEMANUAL" != "0" ]; then
565 if [ -d $MANUALDIR ]; then
569 echo "*** Warning - $MANUALDIR not found"
573 rm -f $DESTDIR/wx
*.
zip
575 rm -f $DESTDIR/ogl3
*.
zip
576 rm -f $DESTDIR/contrib
*.
zip
577 rm -f $DESTDIR/tex2rtf2
*.
zip
578 rm -f $DESTDIR/mmedia
*.
zip
579 rm -f $DESTDIR/jpeg
*.
zip
580 rm -f $DESTDIR/tiff
*.
zip
581 rm -f $DESTDIR/utils
*.
zip
582 rm -f $DESTDIR/extradoc
*.
zip
583 rm -f $DESTDIR/stc
*.
zip
584 rm -f $DESTDIR/*-win32*.
zip
585 rm -f $DESTDIR/setup
*.
*
589 if [ -d $DESTDIR/wx
]; then
593 if [ ! -d $DESTDIR ]; then
596 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
597 rm -f -r $DESTDIR/wxWidgets
-$VERSION
600 # Copy FAQ from wxWebSite CVS
601 #if [ ! -d $WEBFILES ]; then
602 # echo Error - $WEBFILES does not exist
606 echo Copying FAQ and other files from
$WEBFILES
607 cp $WEBFILES/site
/faq
*.htm
$APPDIR/docs
/html
608 cp $WEBFILES/site
/platform.htm
$APPDIR/docs
/html
609 cp $WEBFILES/site
/i18n.htm
$APPDIR/docs
/html
611 # Copy setup0.h files to setup.h
612 # OS/2 always built with configure now
613 # cp $APPDIR/include/wx/os2/setup0.h $APPDIR/include/wx/os2/setup.h
614 cp $APPDIR/include
/wx
/msw
/setup0.h
$APPDIR/include
/wx
/msw
/setup.h
615 cp $APPDIR/include
/wx
/univ
/setup0.h
$APPDIR/include
/wx
/univ
/setup.h
618 if [ "$SPINOS2" = "1" ] || [ "$SPINALL" = "1" ]; then
619 dospinport
"os2" #dospinos2
623 if [ "$SPINMAC" = "1" ] || [ "$SPINALL" = "1" ]; then
628 if [ "$SPINMSW" = "1" ] || [ "$SPINALL" = "1" ]; then
629 dospinport
"msw" #dospinmsw
633 if [ "$SPINBASE" = "1" ] || [ "$SPINALL" = "1" ]; then
634 dospinport
"base" #dospinbase
638 if [ "$SPINWXALL" = "1" ] || [ "$SPINALL" = "1" ]; then
639 dospinport
"all" #dospinwxall
643 if [ "$SPINDOCS" = "1" ] || [ "$SPINALL" = "1" ]; then
650 docopydocs
$APPDIR $DESTDIR
652 # Time to regenerate the Inno Install script
656 # Get the makefiles that aren't in CVS and unarchive them
659 echo Getting eVC
++ project files...
660 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx
-mk-evcprj.
zip --output /c
/transit
/wx
-mk-evcprj.
zip
661 echo Getting Digital Mars makefiles...
662 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx
-mk-dmars.
zip --output /c
/transit
/wx
-mk-dmars.
zip
663 echo Getting VC
++ makefiles...
664 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx
-mk-msvc.
zip --output /c
/transit
/wx
-mk-msvc.
zip
667 echo Unarchiving makefiles and project files...
668 unzip -o -a /c
/transit
/wx
-mk-evcprj.
zip
669 unzip -o -a /c
/transit
/wx
-mk-dmars.
zip
670 unzip -o -a /c
/transit
/wx
-mk-msvc.
zip
671 echo Done getting makefiles and project files.
676 echo "Usage: $PROGNAME [ options ]" 1>&2
678 echo " --help Display this help message"
679 echo " --upx Compress executable with UPX"
680 echo " --no-upx Do not compress executable with UPX"
681 echo " --inno Build the setup.exe"
682 echo " --no-inno Do not build the setup.exe"
683 echo " --wxmac Build wxMac distribution"
684 echo " --wxmsw Build wxMSW distribution"
685 echo " --wxos2 Build wxOS2 distribution"
686 echo " --wxall Build wxAll zip distribution"
687 echo " --wxbase Build wxBase zip distribution"
688 echo " --docs Build docs archives"
689 echo " --all Build all distributions (the default)"
690 echo " --getmakefiles Get out-of-CVS makefiles and unarchive into the wxWidgets source tree"
691 echo " --verbose Verbose zip operation"
693 echo Note that options only override settings
in $SCRIPTDIR/msw
/setup.var.
697 # Process command line options.
706 --wxmac) SPINMAC
=1; SPINALL
=0 ;;
707 --wxmsw) SPINMSW
=1; SPINALL
=0 ;;
708 --wxos2) SPINOS2
=1; SPINALL
=0 ;;
709 --wxall) SPINWXALL
=1; SPINALL
=0 ;;
710 --wxbase) SPINBASE
=1; SPINALL
=0 ;;
711 --getmakefiles) GETMAKEFILES
=1; SPINALL
=0 ;;
712 --docs) SPINDOCS
=1; SPINALL
=0 ;;
714 --verbose) VERBOSE
=1 ;;
725 if [ "$GETMAKEFILES" = "1" ]; then