3 # Make a distribution of an application on MSW.
5 # ../distrib/msw/makesetup.sh --wxmsw --verbose &> log
9 # If your zip accepts Cygwin-style paths, then
10 # use cygpath, else substitute echo
26 SCRIPTDIR
=$WXWIN/distrib
/scripts
27 .
$SCRIPTDIR/msw
/setup.var
28 .
$SCRIPTDIR/utils.inc
30 MANIFESTDIR
=$SCRIPTDIR/manifests
31 WEBFILES
=c
:/wx2dev
/wxWebSite
32 if [ ! "$CYGPATH" = "" ]; then
33 WEBFILES
=`$CYGPATH "$WEBFILES"`
36 # Set this to the required version
37 if [ "$VERSION" = "" ]; then
46 if [ -f
$thefile ]; then
47 sed -e
"$theexpr" < $thefile > $thefile.tmp
48 mv $thefile.tmp
$thefile
50 echo "*** $thefile not found."
56 echo $1 |
sed -e
"s/\//\\\\\\\/g" > /tmp
/filename.tmp
57 RETVALUE
=`cat /tmp/filename.tmp`
58 rm -f
/tmp
/filename.tmp
63 echo $1 |
sed -e
"s/\//\\\\/g" > /tmp
/filename.tmp
64 RETVALUE
=`cat /tmp/filename.tmp`
65 rm -f
/tmp
/filename.tmp
70 if [ "$VERBOSE" != "1" ]; then
81 echo Re-archiving
$archive as
$dirname
85 if [ -d
$dirname ]; then
90 unzip $ZIPFLAGS ..
/$archive
93 zip $ZIPFLAGS -r
$archive $dirname/*
104 echo Re-tarring
$archive as
$dirname
108 if [ -d
$dirname ]; then
116 tar cfz
$archive $dirname/*
121 # Find the version from wx/version.h
125 echo "#include <stdio.h>" > /tmp
/appver.c
126 echo "#include \"$VERSIONSYMBOLFILE\"" >> /tmp
/appver.c
127 echo "int main() { printf(\"%.2f\", $VERSIONSYMBOL); }" >> /tmp
/appver.c
128 gcc
/tmp
/appver.c
-I
$APPDIR -o
/tmp
/appver
129 VERSION
=`/tmp/appver`
130 rm -f
/tmp
/appver
/tmp
/appver.c
138 cat generic.rsp os2.rsp jpeg.rsp tiff.rsp jpeg.rsp utils.rsp tex2rtf.rsp ogl.rsp xml.rsp contrib.rsp deprecated.rsp makefile.rsp
> /tmp
/os2files.
in
141 expandlines
/tmp
/os2files.
in /tmp
/os2files
143 # Zip up the complete wxOS2-xxx.zip file
144 zip $ZIPFLAGS -@
$DESTDIR/wxOS2-
$VERSION.
zip < /tmp
/os2files
146 # Rearchive under wxWidgets-$VERSION
147 if [ -d
$DESTDIR/wxWidgets-
$VERSION ]; then
148 rm -f
-r
$DESTDIR/wxWidgets-
$VERSION
151 mkdir
$DESTDIR/wxWidgets-
$VERSION
152 cd $DESTDIR/wxWidgets-
$VERSION
153 unzip $ZIPFLAGS ..
/wxOS2-
$VERSION.
zip
154 # No longer do this, configure should be OK
155 # echo Overwriting with OS2-specific versions of configure files...
156 # unzip $ZIPFLAGS -o $APPDIR/distrib/os2/os2-specific.zip
157 rm -f src
/gtk
/descrip.mms src
/motif
/descrip.mms docs
/pdf
/*.pdf
158 rm -f src
/tiff
/*.mcp src
/jpeg
/*.mcp src
/png
/*.mcp src
/zlib
/*.mcp
159 rm -f
-r docs
/html
/tex2rtf
161 # echo Making OS/2 files lower case...
162 # no longer necessary
163 # $SCRIPTDIR/namedown include/wx/os2/*.H
164 # $SCRIPTDIR/namedown src/os2/*.CPP src/os2/*.I
166 echo Copying readme files...
167 cp $APPDIR/docs
/os2
/install.txt INSTALL-OS2.txt
171 rm -f wxOS2-
$VERSION.
zip
172 zip $ZIPFLAGS -r wxOS2-
$VERSION.
zip wxWidgets-
$VERSION/*
177 echo Zipping wxMSW...
180 # add all the files into a megafile
181 cat generic.rsp makefile.rsp msw.rsp ogl.rsp mmedia.rsp stc.rsp tex2rtf.rsp jpeg.rsp tiff.rsp xml.rsp contrib.rsp deprecated.rsp utils.rsp utilmake.rsp univ.rsp wince.rsp palmos.rsp
> /tmp
/mswfiles.
in
185 # now expand the wildcards to actual file names
186 expandlines
/tmp
/mswfiles.
in /tmp
/mswfiles
188 # Create wxWidgets-$VERSION-win.zip which is used to create wxMSW
189 echo Zipping individual components
190 rm -f
$DESTDIR/wxWidgets-
$VERSION-win.
zip
191 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-win.
zip < /tmp
/mswfiles
196 echo Zipping wxAll...
199 echo Zipping individual components
200 rm -f
$DESTDIR/wxWidgets-
$VERSION-all.
zip
202 # Save adding all the wxMSW files again
203 if [ ! -f
$DESTDIR/wxWidgets-
$VERSION-win.
zip ]; then
206 cp $DESTDIR/wxWidgets-
$VERSION-win.
zip $DESTDIR/wxWidgets-
$VERSION-all.
zip
208 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
209 zip $ZIPFLAGS -@
-u
$DESTDIR/wxWidgets-
$VERSION-all.
zip < /tmp
/all.txt
211 if [ -d
$DESTDIR/wxWidgets-
$VERSION ]; then
212 rm -f
-r
$DESTDIR/wxWidgets-
$VERSION
215 mkdir
$DESTDIR/wxWidgets-
$VERSION
216 cd $DESTDIR/wxWidgets-
$VERSION
217 unzip $ZIPFLAGS ..
/wxWidgets-
$VERSION-all.
zip
221 rm -f
$DESTDIR/wxWidgets-
$VERSION-all.
zip
222 zip $ZIPFLAGS -r wxWidgets-
$VERSION.
zip wxWidgets-
$VERSION/*
229 echo Zipping wxBase...
230 rm -f
$DESTDIR/wxBase-
$VERSION.
zip
231 expandlines
$MANIFESTDIR/base.rsp
/tmp
/basefiles
232 zip $ZIPFLAGS -@
$DESTDIR/wxBase-
$VERSION.
zip < /tmp
/basefiles
234 if [ -d
$DESTDIR/wxWidgets-
$VERSION ]; then
235 rm -f
-r
$DESTDIR/wxWidgets-
$VERSION
238 mkdir
$DESTDIR/wxWidgets-
$VERSION
239 cd $DESTDIR/wxWidgets-
$VERSION
240 unzip $ZIPFLAGS ..
/wxBase-
$VERSION.
zip
242 echo Copying readme files...
243 cp $APPDIR/docs
/base
/readme.txt README.txt
247 rm -f wxBase-
$VERSION.
zip
248 zip $ZIPFLAGS -r wxBase-
$VERSION.
zip wxWidgets-
$VERSION/*
255 echo Creating
$DESTDIR/wxWidgets-
$VERSION-DocSource.
zip
256 expandlines
$MANIFESTDIR/docsrc.rsp
/tmp
/docsources
257 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-DocSource.
zip < /tmp
/docsources
258 rearchive wxWidgets-
$VERSION-DocSource.
zip wxWidgets-
$VERSION $DESTDIR
260 echo Creating
$DESTDIR/wxWidgets-
$VERSION-WinHelp.
zip
261 expandlines
$MANIFESTDIR/wx_hlp.rsp
/tmp
/winhelp
262 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-WinHelp.
zip < /tmp
/winhelp
263 rearchive wxWidgets-
$VERSION-WinHelp.
zip wxWidgets-
$VERSION $DESTDIR
265 echo Creating
$DESTDIR/wxWidgets-
$VERSION-HTML.
zip
266 expandlines
$MANIFESTDIR/wx_html.rsp
/tmp
/htmldocs
267 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-HTML.
zip < /tmp
/htmldocs
268 rearchive wxWidgets-
$VERSION-HTML.
zip wxWidgets-
$VERSION $DESTDIR
270 echo Creating
$DESTDIR/wxWidgets-
$VERSION-PDF.
zip
271 expandlines
$MANIFESTDIR/wx_pdf.rsp
/tmp
/pdfdocs
272 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-PDF.
zip < /tmp
/pdfdocs
273 rearchive wxWidgets-
$VERSION-PDF.
zip wxWidgets-
$VERSION $DESTDIR
275 echo Creating
$DESTDIR/wxWidgets-
$VERSION-PDF.
tar.gz
276 tar zcf
/c
/wx2dev
/wxWindows
/deliver
/wxWidgets-
$VERSION-PDF.
tar.gz docs
/pdf
/*.pdf
277 rearchivetar wxWidgets-
$VERSION-PDF.
tar.gz wxWidgets-
$VERSION /c
/wx2dev
/wxWindows
/deliver
279 echo Creating
$DESTDIR/wxWidgets-
$VERSION-HTB.
zip
280 expandlines
$MANIFESTDIR/wx_htb.rsp
/tmp
/htbdocs
281 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-HTB.
zip < /tmp
/htbdocs
282 rearchive wxWidgets-
$VERSION-HTB.
zip wxWidgets-
$VERSION $DESTDIR
284 echo Creating
$DESTDIR/wxWidgets-
$VERSION-HTMLHelp.
zip
285 expandlines
$MANIFESTDIR/wx_chm.rsp
/tmp
/chmdocs
286 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-HTMLHelp.
zip < /tmp
/chmdocs
287 rearchive wxWidgets-
$VERSION-HTMLHelp.
zip wxWidgets-
$VERSION $DESTDIR
289 # Add Linuxy docs to a separate archive to be transported to Linux for the
290 # Linux-based releases
291 echo Creating
$DESTDIR/wxWidgets-
$VERSION-LinuxDocs.
zip
293 cat $MANIFESTDIR/wx_html.rsp
$MANIFESTDIR/wx_pdf.rsp
$MANIFESTDIR/wx_htb.rsp
> /tmp
/linuxdocs.
in
294 expandlines
/tmp
/linuxdocs.
in /tmp
/linuxdocs
296 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-LinuxDocs.
zip < /tmp
/linuxdocs
298 # PDF/HTML docs that should go into the Windows setup because
299 # there are no WinHelp equivalents
300 echo Creating
$DESTDIR/wxWidgets-
$VERSION-ExtraDoc.
zip
301 expandlines
$SCRIPT/extradoc.rsp
/tmp
/extradocs
302 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-ExtraDoc.
zip < /tmp
/extradocs
303 rearchive wxWidgets-
$VERSION-ExtraDoc.
zip wxWidgets-
$VERSION $DESTDIR
310 # zip up Univ-specific files
311 echo Creating
$DESTDIR/wxWidgets-
$VERSION-Univ.
zip
312 expandlines
$MANIFESTDIR/univ.rsp
/tmp
/univfiles
313 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-Univ.
zip < /tmp
/univfiles
314 rearchive wxWidgets-
$VERSION-Univ.
zip wxWidgets-
$VERSION $DESTDIR
317 echo Creating
$DESTDIR/wxWidgets-
$VERSION-VC.
zip
318 expandlines
$MANIFESTDIR/vc.rsp
/tmp
/vcfiles
319 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-VC.
zip < /tmp
/vcfiles
320 rearchive wxWidgets-
$VERSION-VC.
zip wxWidgets-
$VERSION $DESTDIR
322 # eVC++ project files
323 echo Creating
$DESTDIR/wxWidgets-
$VERSION-eVC.
zip
324 expandlines
$MANIFESTDIR/wince.rsp
/tmp
/wincefiles
325 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-eVC.
zip < /tmp
/wincefiles
326 rearchive wxWidgets-
$VERSION-eVC.
zip wxWidgets-
$VERSION $DESTDIR
329 echo Creating
$DESTDIR/wxWidgets-
$VERSION-DMC.
zip
330 expandlines
$MANIFESTDIR/dmc.rsp
/tmp
/dmcfiles
331 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-DMC.
zip < /tmp
/dmcfiles
332 rearchive wxWidgets-
$VERSION-DMC.
zip wxWidgets-
$VERSION $DESTDIR
335 echo Creating
$DESTDIR/wxWidgets-
$VERSION-BC.
zip
336 expandlines
$MANIFESTDIR/bc.rsp
/tmp
/bcfiles
337 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-BC.
zip < /tmp
/bcfiles
338 rearchive wxWidgets-
$VERSION-BC.
zip wxWidgets-
$VERSION $DESTDIR
340 # CodeWarrior project files
341 echo Creating
$DESTDIR/wxWidgets-
$VERSION-CW.
zip
342 expandlines
$MANIFESTDIR/cw.rsp
/tmp
/cwfiles
343 zip $ZIPFLAGS -@
$DESTDIR/wxWidgets-
$VERSION-CW.
zip < /tmp
/cwfiles
344 rearchive wxWidgets-
$VERSION-CW.
zip wxWidgets-
$VERSION $DESTDIR
351 # Put all archives for transit to Linux in a zip file
352 echo Creating
$DESTDIR/wxWidgets-
$VERSION-LinuxTransit.
zip
353 rm -f
$DESTDIR/wxWidgets-
$VERSION-LinuxTransit.
zip
354 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
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-win.
zip -d .
363 unzip $ZIPFLAGS -o wxWidgets-
$VERSION-VC.
zip -d .
364 unzip $ZIPFLAGS -o wxWidgets-
$VERSION-DMC.
zip -d .
365 unzip $ZIPFLAGS -o wxWidgets-
$VERSION-BC.
zip -d .
366 unzip $ZIPFLAGS -o wxWidgets-
$VERSION-CW.
zip -d .
368 unzip $ZIPFLAGS -o wxWidgets-
$VERSION-HTMLHelp.
zip
369 unzip $ZIPFLAGS -o wxWidgets-
$VERSION-ExtraDoc.
zip
371 # After this change of directory, we're in the
372 # temporary 'wx' directory and not acting on
373 # the source wxWidgets directory.
374 cd $DESTDIR/wxWidgets-
$VERSION
376 # Now delete a few files that are unnecessary
378 rm -f BuildCVS.txt descrip.mms
380 rm -f docs
/html
/wxbook.htm docs
/html
/roadmap.htm
381 rm -f
-r contrib
/docs
/latex
/ogl
382 rm -f src
/mingegcs.bat
385 rm -f src
/gtk
/descrip.mms src
/motif
/descrip.mms
387 echo Copying readme files...
388 cp $APPDIR/docs
/msw
/readme.txt README-MSW.txt
389 cp $APPDIR/docs
/msw
/install.txt INSTALL-MSW.txt
390 cp $APPDIR/docs
/licence.txt LICENCE.txt
391 cp $APPDIR/docs
/lgpl.txt COPYING.LIB
392 cp $APPDIR/docs
/changes.txt CHANGES.txt
393 cp $APPDIR/docs
/readme.txt README.txt
395 # Disabled for now - Now cp some binary files to 'bin'
396 if [ ! -d bin
]; then
400 cp $APPDIR/bin
/tex2rtf.exe bin
401 cp $APPDIR/bin
/tex2rtf.chm bin
402 cp $APPDIR/bin
/widgets.exe bin
403 cp $APPDIR/bin
/life.exe bin
404 cp $APPDIR/demos
/life
/breeder.lif bin
405 cp $APPDIR/docs
/htmlhelp
/tex2rtf.chm bin
407 if [ ! -d docs
/pdf
]; then
410 #cp $APPDIR/docs/pdf/wxTutorial.pdf docs/pdf
414 zip $ZIPFLAGS -r wxMSW-
$VERSION.
zip wxWidgets-
$VERSION/*
415 cd wxWidgets-
$VERSION
417 if [ "$INNO" != "0" ]; then
418 echo Generating
$SETUPSCRIPTNAME
419 rm -f
$SETUPSCRIPTNAME
421 sh
$SCRIPTDIR/msw
/makeinno.sh
$SETUPIMAGEDIR $INNOTOP $INNOBOTTOM $SETUPSCRIPTNAME
423 if [ ! -f
$SETUPSCRIPTNAME ]; then
424 echo "*** Error - something went wrong with the script file generation."
428 # Now replace %VERSION% with the real application version, and other
430 echo Replacing variables
in the setup
script
431 doreplace
$SETUPSCRIPTNAME "s/%VERSION%/$VERSION/g"
432 doreplace
$SETUPSCRIPTNAME "s/%COPYRIGHTHOLDER%/$AUTHOR/g"
433 doreplace
$SETUPSCRIPTNAME "s/%VENDOR%/$VENDOR/g"
435 unix2dosname
$READMEFILE
436 doreplace
$SETUPSCRIPTNAME "s;%READMEFILE%;$RETVALUE;g"
438 unix2dosname
$READMEAFTERFILE
439 doreplace
$SETUPSCRIPTNAME "s;%READMEAFTERFILE%;$RETVALUE;g"
441 unix2dosname
$LICENSEFILE
442 doreplace
$SETUPSCRIPTNAME "s;%LICENSEFILE%;$RETVALUE;g"
444 doreplace
$SETUPSCRIPTNAME "s/%APPNAME%/$APPNAME/g"
445 doreplace
$SETUPSCRIPTNAME "s/%APPTITLE%/$APPTITLE/g"
447 unix2dosname
$SETUPIMAGEDIR
448 doreplace
$SETUPSCRIPTNAME "s;%SOURCEDIR%;$RETVALUE;g"
450 unix2dosname
$DESTDIR
451 doreplace
$SETUPSCRIPTNAME "s;%OUTPUTDIR%;$RETVALUE;g"
453 doreplace
$SETUPSCRIPTNAME "s/%APPEXTENSION%/$APPEXTENSION/g"
455 # FIXME: how do we get the first name in the list?
456 if [ "$MANUALFILES" != "" ]; then
457 HELPFILE
=`basename $MANUALFILES`
458 unix2dosname
$HELPFILE
459 doreplace
$SETUPSCRIPTNAME "s;%HELPFILE%;$RETVALUE;g"
462 rm -f
$DESTDIR/setup
*.
* $DESTDIR/wxMSW-
$VERSION-Setup.exe
464 # Inno Setup complains if this step is not done
465 unix2dos
--unix2dos
$SETUPSCRIPTNAME
467 # Now invoke INNO compiler on the new ISS file
468 # First, make a DOS filename or Inno Setup will get confused.
470 unix2dosname2
$SETUPSCRIPTNAME
471 DOSFILENAME
=$RETVALUE
473 # Note: the double slash is Mingw32/MSYS convention for
474 # denoting a switch, that must not be converted into
475 # a path (otherwise /c = c:/)
477 cd `dirname $SETUPSCRIPTNAME`
478 BASESCRIPTNAME
=`basename $SETUPSCRIPTNAME`
479 echo Invoking Inno Setup compiler on
$BASESCRIPTNAME
481 "$SETUPCOMPILER" //cc
$BASESCRIPTNAME
483 if [ ! -f
$DESTDIR/setup.exe
]; then
484 echo "*** Error - the setup.exe was not generated."
489 mv setup.exe wxMSW-
$VERSION-Setup.exe
492 # echo Putting all the setup files into a single zip archive
493 # zip wxMSW-$VERSION-setup.zip readme-$VERSION.txt setup*.*
495 rm -f wxWidgets-
$VERSION-win.
zip
496 rm -f wxWidgets-
$VERSION-ExtraDoc.
zip
497 rm -f wxWidgets-
$VERSION-DMC.
zip
498 rm -f wxWidgets-
$VERSION-eVC.
zip
499 rm -f wxWidgets-
$VERSION-Univ.
zip
500 rm -f wxWidgets-
$VERSION-VC.
zip
501 rm -f wxWidgets-
$VERSION-DocSource.
zip
502 rm -f wxWidgets-
$VERSION-LinuxDocs.
zip
504 echo If you saw no warnings or errors
, $APPTITLE was successfully spun.
510 # if [ -d $SETUPIMAGEDIR ]; then
511 # echo Removing contents of existing $SETUPIMAGEDIR
512 # rm -f -r $SETUPIMAGEDIR/*
515 if [ ! -d
$SETUPIMAGEDIR ]; then
516 echo Making the
$SETUPIMAGEDIR for preparing the setup
517 mkdir
-p
$SETUPIMAGEDIR
521 if [ "$READMEFILE" != "" ] && [ -f
$READMEFILE ]; then
522 echo Copying readme.txt
523 cp $READMEFILE $SETUPIMAGEDIR
525 # echo "*** Warning - $READMEFILE not found"
528 if [ "$LICENSEFILE" != "" ] && [ -f
$LICENSEFILE ]; then
529 echo Copying licence.txt
530 cp $LICENSEFILE $SETUPIMAGEDIR
532 # echo "*** Warning - $LICENSEFILE not found"
535 if [ "$MAKEMANUAL" != "0" ]; then
536 if [ -d
$MANUALDIR ]; then
540 echo "*** Warning - $MANUALDIR not found"
544 rm -f
$DESTDIR/wx
*.
zip
546 rm -f
$DESTDIR/ogl3
*.
zip
547 rm -f
$DESTDIR/contrib
*.
zip
548 rm -f
$DESTDIR/tex2rtf2
*.
zip
549 rm -f
$DESTDIR/mmedia
*.
zip
550 rm -f
$DESTDIR/jpeg
*.
zip
551 rm -f
$DESTDIR/tiff
*.
zip
552 rm -f
$DESTDIR/utils
*.
zip
553 rm -f
$DESTDIR/extradoc
*.
zip
554 rm -f
$DESTDIR/stc
*.
zip
555 rm -f
$DESTDIR/*-win32
*.
zip
556 rm -f
$DESTDIR/setup
*.
*
560 if [ -d
$DESTDIR/wx
]; then
564 if [ ! -d
$DESTDIR ]; then
567 if [ -d
$DESTDIR/wxWidgets-
$VERSION ]; then
568 rm -f
-r
$DESTDIR/wxWidgets-
$VERSION
571 # Copy FAQ from wxWebSite CVS
572 #if [ ! -d $WEBFILES ]; then
573 # echo Error - $WEBFILES does not exist
577 echo Copying FAQ and other files from
$WEBFILES
578 cp $WEBFILES/site
/faq
*.htm
$APPDIR/docs
/html
579 cp $WEBFILES/site
/platform.htm
$APPDIR/docs
/html
580 cp $WEBFILES/site
/i18n.htm
$APPDIR/docs
/html
582 # Copy setup0.h files to setup.h
583 # OS/2 always built with configure now
584 # cp $APPDIR/include/wx/os2/setup0.h $APPDIR/include/wx/os2/setup.h
585 cp $APPDIR/include
/wx
/msw
/setup0.h
$APPDIR/include
/wx
/msw
/setup.h
586 cp $APPDIR/include
/wx
/univ
/setup0.h
$APPDIR/include
/wx
/univ
/setup.h
589 if [ "$SPINOS2" = "1" ] ||
[ "$SPINALL" = "1" ]; then
594 if [ "$SPINMAC" = "1" ] ||
[ "$SPINALL" = "1" ]; then
599 if [ "$SPINMSW" = "1" ] ||
[ "$SPINALL" = "1" ]; then
604 if [ "$SPINBASE" = "1" ] ||
[ "$SPINALL" = "1" ]; then
609 if [ "$SPINWXALL" = "1" ] ||
[ "$SPINALL" = "1" ]; then
614 if [ "$SPINDOCS" = "1" ] ||
[ "$SPINALL" = "1" ]; then
621 docopydocs
$APPDIR $DESTDIR
623 # Time to regenerate the Inno Install script
627 # Get the makefiles that aren't in CVS and unarchive them
630 echo Getting eVC
++ project files...
631 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx-mk-evcprj.
zip --output
/c
/transit
/wx-mk-evcprj.
zip
632 echo Getting Digital Mars makefiles...
633 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx-mk-dmars.
zip --output
/c
/transit
/wx-mk-dmars.
zip
634 echo Getting VC
++ makefiles...
635 curl http
://biolpc22.york.ac.uk
/pub
/CVS_Makefiles
/wx-mk-msvc.
zip --output
/c
/transit
/wx-mk-msvc.
zip
638 echo Unarchiving makefiles and project files...
639 unzip -o
-a
/c
/transit
/wx-mk-evcprj.
zip
640 unzip -o
-a
/c
/transit
/wx-mk-dmars.
zip
641 unzip -o
-a
/c
/transit
/wx-mk-msvc.
zip
642 echo Done getting makefiles and project files.
647 echo "Usage: $PROGNAME [ options ]" 1>&2
649 echo " --help Display this help message"
650 echo " --upx Compress executable with UPX"
651 echo " --no-upx Do not compress executable with UPX"
652 echo " --inno Build the setup.exe"
653 echo " --no-inno Do not build the setup.exe"
654 echo " --wxmac Build wxMac distribution"
655 echo " --wxmsw Build wxMSW distribution"
656 echo " --wxos2 Build wxOS2 distribution"
657 echo " --wxall Build wxAll zip distribution"
658 echo " --wxbase Build wxBase zip distribution"
659 echo " --docs Build docs archives"
660 echo " --all Build all distributions (the default)"
661 echo " --getmakefiles Get out-of-CVS makefiles and unarchive into the wxWidgets source tree"
662 echo " --verbose Verbose zip operation"
664 echo Note that options only override settings
in $SCRIPTDIR/msw
/setup.var.
668 # Process command line options.
677 --wxmac
) SPINMAC
=1; SPINALL
=0 ;;
678 --wxmsw
) SPINMSW
=1; SPINALL
=0 ;;
679 --wxos2
) SPINOS2
=1; SPINALL
=0 ;;
680 --wxall
) SPINWXALL
=1; SPINALL
=0 ;;
681 --wxbase
) SPINBASE
=1; SPINALL
=0 ;;
682 --getmakefiles
) GETMAKEFILES
=1; SPINALL
=0 ;;
683 --docs
) SPINDOCS
=1; SPINALL
=0 ;;
685 --verbose
) VERBOSE
=1 ;;
696 if [ "$GETMAKEFILES" = "1" ]; then