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 dmc.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/wx$port.files.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 upperport
="`echo $port|tr '[a-z]' '[A-Z]'`"
331 echo "Zipping wx$upperport..."
334 portfiles
="/tmp/wx$port.files"
335 getfilelist
"$port" "$portfiles"
337 zip $ZIPFLAGS -@
$DESTDIR/wx
$upperport-$VERSION.
zip < $portfiles
338 zip $ZIPFLAGS -g $DESTDIR/wx
$upperport-$VERSION.
zip LICENSE.txt COPYING.LIB CHANGES.txt README.txt
340 if [ $port = "msw" ] || [ $port = "all" ]; then
341 zip $ZIPFLAGS -g $DESTDIR/wx
$upperport-$VERSION.
zip README
-MSW.txt INSTALL
-MSW.txt
344 if [ $port = "os2" ] || [ $port = "all" ]; then
345 zip $ZIPFLAGS -g $DESTDIR/wx
$upperport-$VERSION.
zip INSTALL
-OS2.txt
348 # put all files in a wxWidgets-$VERSION subdir in the zip archive
349 rearchive wx
$upperport-$VERSION.
zip wxWidgets
-$VERSION $DESTDIR
356 rm -f -r wxWidgets
-$VERSION
358 echo Unzipping the Windows files into wxWidgets
-$VERSION
360 mkdir -p wxWidgets
-$VERSION
362 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-HTMLHelp.
zip
363 unzip $ZIPFLAGS -o wxWidgets
-$VERSION-ExtraDoc.
zip
365 # After this change of directory, we're in the
366 # temporary 'wx' directory and not acting on
367 # the source wxWidgets directory.
368 cd $DESTDIR/wxWidgets
-$VERSION
370 # Now delete a few files that are unnecessary
372 rm -f BuildCVS.txt descrip.mms
374 rm -f docs
/html
/wxbook.htm docs
/html
/roadmap.htm
375 rm -f -r contrib
/docs
/latex
/ogl
376 rm -f src
/mingegcs.bat
379 rm -f src
/gtk
/descrip.mms src
/motif
/descrip.mms
382 # Disabled for now - Now cp some binary files to 'bin'
383 if [ ! -d bin
]; then
387 cp $APPDIR/bin
/tex2rtf.exe bin
388 cp $APPDIR/bin
/tex2rtf.chm bin
389 cp $APPDIR/bin
/widgets.exe bin
390 cp $APPDIR/bin
/life.exe bin
391 cp $APPDIR/demos
/life
/breeder.lif bin
392 cp $APPDIR/docs
/htmlhelp
/tex2rtf.chm bin
394 if [ ! -d docs
/pdf
]; then
397 #cp $APPDIR/docs/pdf/wxTutorial.pdf docs/pdf
401 zip $ZIPFLAGS -r wxMSW
-$VERSION.
zip wxWidgets
-$VERSION/*
402 cd wxWidgets
-$VERSION
404 if [ "$INNO" != "0" ]; then
405 echo Generating
$SETUPSCRIPTNAME
406 rm -f $SETUPSCRIPTNAME
408 sh
$SCRIPTDIR/msw
/makeinno.sh
$SETUPIMAGEDIR $INNOTOP $INNOBOTTOM $SETUPSCRIPTNAME
410 if [ ! -f $SETUPSCRIPTNAME ]; then
411 echo "*** Error - something went wrong with the script file generation."
415 # Now replace %VERSION% with the real application version, and other
417 echo Replacing variables
in the setup
script
418 doreplace
$SETUPSCRIPTNAME "s/%VERSION%/$VERSION/g"
419 doreplace
$SETUPSCRIPTNAME "s/%COPYRIGHTHOLDER%/$AUTHOR/g"
420 doreplace
$SETUPSCRIPTNAME "s/%VENDOR%/$VENDOR/g"
422 unix2dosname
$READMEFILE
423 doreplace
$SETUPSCRIPTNAME "s;%READMEFILE%;$RETVALUE;g"
425 unix2dosname
$READMEAFTERFILE
426 doreplace
$SETUPSCRIPTNAME "s;%READMEAFTERFILE%;$RETVALUE;g"
428 unix2dosname
$LICENSEFILE
429 doreplace
$SETUPSCRIPTNAME "s;%LICENSEFILE%;$RETVALUE;g"
431 doreplace
$SETUPSCRIPTNAME "s/%APPNAME%/$APPNAME/g"
432 doreplace
$SETUPSCRIPTNAME "s/%APPTITLE%/$APPTITLE/g"
434 unix2dosname
$SETUPIMAGEDIR
435 doreplace
$SETUPSCRIPTNAME "s;%SOURCEDIR%;$RETVALUE;g"
437 unix2dosname
$DESTDIR
438 doreplace
$SETUPSCRIPTNAME "s;%OUTPUTDIR%;$RETVALUE;g"
440 doreplace
$SETUPSCRIPTNAME "s/%APPEXTENSION%/$APPEXTENSION/g"
442 # FIXME: how do we get the first name in the list?
443 if [ "$MANUALFILES" != "" ]; then
444 HELPFILE
=`basename $MANUALFILES`
445 unix2dosname
$HELPFILE
446 doreplace
$SETUPSCRIPTNAME "s;%HELPFILE%;$RETVALUE;g"
449 rm -f $DESTDIR/setup
*.
* $DESTDIR/wxMSW
-$VERSION-Setup.exe
451 # Inno Setup complains if this step is not done
452 unix2dos
--unix2dos $SETUPSCRIPTNAME
454 # Now invoke INNO compiler on the new ISS file
455 # First, make a DOS filename or Inno Setup will get confused.
457 unix2dosname2
$SETUPSCRIPTNAME
458 DOSFILENAME
=$RETVALUE
460 # Note: the double slash is Mingw32/MSYS convention for
461 # denoting a switch, that must not be converted into
462 # a path (otherwise /c = c:/)
464 cd `dirname $SETUPSCRIPTNAME`
465 BASESCRIPTNAME
=`basename $SETUPSCRIPTNAME`
466 echo Invoking Inno Setup compiler on
$BASESCRIPTNAME
468 "$SETUPCOMPILER" //cc
$BASESCRIPTNAME
470 if [ ! -f $DESTDIR/setup.exe
]; then
471 echo "*** Error - the setup.exe was not generated."
476 mv setup.exe wxMSW
-$VERSION-Setup.exe
479 # echo Putting all the setup files into a single zip archive
480 # zip wxMSW-$VERSION-setup.zip readme-$VERSION.txt setup*.*
482 rm -f wxWidgets
-$VERSION-ExtraDoc.
zip
483 rm -f wxWidgets
-$VERSION-DocSource.
zip
484 rm -f wxWidgets
-$VERSION-LinuxDocs.
zip
486 echo If you saw no warnings or errors
, $APPTITLE was successfully spun.
493 if [ ! -d $SETUPIMAGEDIR ]; then
494 echo Making the
$SETUPIMAGEDIR for preparing the setup
495 mkdir -p $SETUPIMAGEDIR
499 if [ "$READMEFILE" != "" ] && [ -f $READMEFILE ]; then
500 echo Copying readme.txt
501 cp $READMEFILE $SETUPIMAGEDIR
503 # echo "*** Warning - $READMEFILE not found"
506 if [ "$LICENSEFILE" != "" ] && [ -f $LICENSEFILE ]; then
507 echo Copying licence.txt
508 cp $LICENSEFILE $SETUPIMAGEDIR
510 # echo "*** Warning - $LICENSEFILE not found"
513 if [ "$MAKEMANUAL" != "0" ]; then
514 if [ -d $MANUALDIR ]; then
518 echo "*** Warning - $MANUALDIR not found"
522 rm -f $DESTDIR/wx
*.
zip
524 rm -f $DESTDIR/ogl3
*.
zip
525 rm -f $DESTDIR/contrib
*.
zip
526 rm -f $DESTDIR/tex2rtf2
*.
zip
527 rm -f $DESTDIR/mmedia
*.
zip
528 rm -f $DESTDIR/jpeg
*.
zip
529 rm -f $DESTDIR/tiff
*.
zip
530 rm -f $DESTDIR/utils
*.
zip
531 rm -f $DESTDIR/extradoc
*.
zip
532 rm -f $DESTDIR/stc
*.
zip
533 rm -f $DESTDIR/*-win32*.
zip
534 rm -f $DESTDIR/setup
*.
*
538 if [ -d $DESTDIR/wx
]; then
542 if [ ! -d $DESTDIR ]; then
545 if [ -d $DESTDIR/wxWidgets
-$VERSION ]; then
546 rm -f -r $DESTDIR/wxWidgets
-$VERSION
549 # Copy FAQ from wxWebSite CVS
550 #if [ ! -d $WEBFILES ]; then
551 # echo Error - $WEBFILES does not exist
555 echo Copying FAQ and other files from
$WEBFILES
556 cp $WEBFILES/site
/faq
*.htm
$APPDIR/docs
/html
557 cp $WEBFILES/site
/platform.htm
$APPDIR/docs
/html
558 cp $WEBFILES/site
/i18n.htm
$APPDIR/docs
/html
560 echo Copying readme files...
561 cp $APPDIR/docs
/msw
/readme.txt README
-MSW.txt
562 cp $APPDIR/docs
/msw
/install.txt INSTALL
-MSW.txt
563 cp $APPDIR/docs
/os
2/install.txt INSTALL
-OS2.txt
564 cp $APPDIR/docs
/licence.txt LICENCE.txt
565 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
566 cp $APPDIR/docs
/changes.txt CHANGES.txt
567 cp $APPDIR/docs
/readme.txt README.txt
569 # Copy setup0.h files to setup.h
570 # OS/2 always built with configure now
571 # cp $APPDIR/include/wx/os2/setup0.h $APPDIR/include/wx/os2/setup.h
572 cp $APPDIR/include
/wx
/msw
/setup0.h
$APPDIR/include
/wx
/msw
/setup.h
573 cp $APPDIR/include
/wx
/univ
/setup0.h
$APPDIR/include
/wx
/univ
/setup.h
576 if [ "$SPINOS2" = "1" ] || [ "$SPINALL" = "1" ]; then
577 dospinport
"os2" #dospinos2
581 if [ "$SPINMSW" = "1" ] || [ "$SPINALL" = "1" ]; then
582 dospinport
"msw" #dospinmsw
586 if [ "$SPINBASE" = "1" ] || [ "$SPINALL" = "1" ]; then
587 dospinport
"base" #dospinbase
591 if [ "$SPINWXALL" = "1" ] || [ "$SPINALL" = "1" ]; then
592 dospinport
"all" #dospinwxall
596 if [ "$SPINDOCS" = "1" ] || [ "$SPINALL" = "1" ]; then
600 docopydocs
$APPDIR $DESTDIR
602 # Time to regenerate the Inno Install script
606 # Get the makefiles that aren't in CVS and unarchive them
609 echo Getting eVC
++ project files...
610 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx
-mk-evcprj.
zip --output /c
/transit
/wx
-mk-evcprj.
zip
611 echo Getting Digital Mars makefiles...
612 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx
-mk-dmars.
zip --output /c
/transit
/wx
-mk-dmars.
zip
613 echo Getting VC
++ makefiles...
614 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx
-mk-msvc.
zip --output /c
/transit
/wx
-mk-msvc.
zip
617 echo Unarchiving makefiles and project files...
618 unzip -o -a /c
/transit
/wx
-mk-evcprj.
zip
619 unzip -o -a /c
/transit
/wx
-mk-dmars.
zip
620 unzip -o -a /c
/transit
/wx
-mk-msvc.
zip
621 echo Done getting makefiles and project files.
626 echo "Usage: $PROGNAME [ options ]" 1>&2
628 echo " --help Display this help message"
629 echo " --upx Compress executable with UPX"
630 echo " --no-upx Do not compress executable with UPX"
631 echo " --inno Build the setup.exe"
632 echo " --no-inno Do not build the setup.exe"
633 echo " --wxmac Build wxMac distribution"
634 echo " --wxmsw Build wxMSW distribution"
635 echo " --wxos2 Build wxOS2 distribution"
636 echo " --wxall Build wxAll zip distribution"
637 echo " --wxbase Build wxBase zip distribution"
638 echo " --docs Build docs archives"
639 echo " --all Build all distributions (the default)"
640 echo " --getmakefiles Get out-of-CVS makefiles and unarchive into the wxWidgets source tree"
641 echo " --verbose Verbose zip operation"
643 echo Note that options only override settings
in $SCRIPTDIR/msw
/setup.var.
647 # Process command line options.
656 --wxmac) SPINMAC
=1; SPINALL
=0 ;;
657 --wxmsw) SPINMSW
=1; SPINALL
=0 ;;
658 --wxos2) SPINOS2
=1; SPINALL
=0 ;;
659 --wxall) SPINWXALL
=1; SPINALL
=0 ;;
660 --wxbase) SPINBASE
=1; SPINALL
=0 ;;
661 --getmakefiles) GETMAKEFILES
=1; SPINALL
=0 ;;
662 --docs) SPINDOCS
=1; SPINALL
=0 ;;
664 --verbose) VERBOSE
=1 ;;
675 if [ "$GETMAKEFILES" = "1" ]; then