home *** CD-ROM | disk | FTP | other *** search
- echo #############################################
- echo # Installation procedure for WATCOM C/386 #
- echo #############################################
- #
- # inquire about what to install
- #
- ask dosx Will you be developing 32-bit applications for a DOS Extender [503K] ?
- set pls n
- set ecs n
- set dos4g n
- set ads n
- if %dosx ask pls Do you wish to install support for the Phar Lap DOS extender [171K] ?
- if %dosx ask ecs Do you wish to install support for the Ergo DOS extender [18K] ?
- if %dosx ask dos4g Do you wish to install support for the Rational DOS extender [417K] ?
- if %dosx ask ads Do you wish to install support for the AutoCAD Development System [71K] ?
- ask win3tgt Will you be developing 32-bit applications for Windows 3.x [2087K] ?
- set wex n
- set sdk n
- set doc n
- if %win3tgt ask wex Do you want Windows 3.x examples installed [644K] ?
- if %win3tgt ask sdk Do you want Windows 3.x SDK examples installed [152K] ?
- if %win3tgt ask doc Do you want Windows 3.x on-line help installed [1928K] ?
- ask os2host Will you be using OS/2 as a development environment [499K] ?
- ask help Do you wish to install the HELP utility and help files [460K] ?
- ask nlm Do you wish to install debugger support for NLMs [135K] ?
- ask wprof Do you wish to install the Profiler [550K] ?
- #
- # create destination directories
- #
- mkdir %2
- mkdir %2bin
- mkdir %2binb
- mkdir %2binp
- mkdir %2binw
- if %nlm mkdir %2nlm
- mkdir %2lib386
- mkdir %2lib386\dos
- mkdir %2lib386\win
- mkdir %2src
- if %win3tgt mkdir %2src\inc
- mkdir %2src\startup
- mkdir %2src\startup\386
- if %ads mkdir %2src\startup\ads
- if %sdk mkdir %2src\dll
- if %sdk mkdir %2src\sdkpatch
- if %sdk mkdir %2src\sdkpatch\bitmap
- if %sdk mkdir %2src\sdkpatch\cliptext
- if %sdk mkdir %2src\sdkpatch\clock
- if %sdk mkdir %2src\sdkpatch\cursor
- if %sdk mkdir %2src\sdkpatch\dde
- if %sdk mkdir %2src\sdkpatch\editcntl
- if %sdk mkdir %2src\sdkpatch\editfile
- if %sdk mkdir %2src\sdkpatch\editmenu
- if %sdk mkdir %2src\sdkpatch\fileopen
- if %sdk mkdir %2src\sdkpatch\generic
- if %sdk mkdir %2src\sdkpatch\helpex
- if %sdk mkdir %2src\sdkpatch\icon
- if %sdk mkdir %2src\sdkpatch\input
- if %sdk mkdir %2src\sdkpatch\menu
- if %sdk mkdir %2src\sdkpatch\multipad
- if %sdk mkdir %2src\sdkpatch\mypal
- if %sdk mkdir %2src\sdkpatch\output
- if %sdk mkdir %2src\sdkpatch\owncombo
- if %sdk mkdir %2src\sdkpatch\prntfile
- if %sdk mkdir %2src\sdkpatch\showfont
- if %sdk mkdir %2src\sdkpatch\tty
- mkdir %2src\win
- if %wex mkdir %2src\win\alarm
- if %wex mkdir %2src\win\chart
- if %wex mkdir %2src\win\datactl
- if %wex mkdir %2src\win\edit
- if %wex mkdir %2src\win\filedll
- if %wex mkdir %2src\win\generic
- if %wex mkdir %2src\win\helpex
- if %wex mkdir %2src\win\iconview
- if %wex mkdir %2src\win\life
- if %wex mkdir %2src\win\shootgal
- if %wex mkdir %2src\win\watzee
- mkdir %2h
- mkdir %2h\sys
- #
- # install software on diskette #1
- #
- unpack %2 %1readme.wpk
- unpack %2binb\ %1wcl386.wpk
- unpack %2bin\ %1wcc386.dos
- unpack %2bin\ %1386wcgl.wpk
- unpack %2bin\ %1wcc386p.wpk
- if %os2host unpack %2binp\ %1wcc386.os2
- unpack %2binb\ %1wmake.wpk
- unpack %2binb\ %1womp.wpk
- unpack %2binb\ %1bpatch.wpk
- unpack %2binb\ %1wdisasm.wpk
- unpack %2bin\ %1cfig386.wpk
- unpack %2src\ %1source.wpk
- if %dos4g unpack %2src\ %1wstubsrc.wpk
- unpack %2src\startup\ %1startup.wpk
- unpack %2src\startup\386\ %1startup.386
- if %win3tgt unpack %2src\startup\386\ %1startup.w32
- if %ads unpack %2src\startup\ads\ %1startup.ads
- if %ads unpack %2lib386\dos\ %1adsstart.wpk
- unpack %2h\ %1h.wpk
- unpack %2h\ %1h386.wpk
- unpack %2h\sys\ %1h_sys.wpk
- #
- # install software on diskette #2
- #
- enter %1wlink.wpk disk 2, labelled "Library & Linker Disk"
- unpack %2binb\ %1wlink.wpk
- unpack %2bin\ %1wlinkp.wpk
- unpack %2binb\ %1ms2wlink.wpk
- unpack %2binb\ %1wstrip.wpk
- unpack %2binb\ %1wlib.wpk
- unpack %2bin\ %1cmdedit.wpk
- if %help unpack %2bin\ %1whelp.dos
- if %help if %os2host unpack %2binp\ %1whelp.os2
- if %help unpack %2binb\ %1watcomc.wpk
- if %help unpack %2binb\ %1graphhlp.wpk
- if %dosx unpack %2lib386\dos\ %1clib3r.dos
- if %dosx unpack %2lib386\dos\ %1clib3s.dos
- if %dosx unpack %2lib386\dos\ %1graph.dos
- if %win3tgt unpack %2lib386\win\ %1win386.wpk
- if %win3tgt unpack %2lib386\win\ %1clib3r.win
- if %win3tgt unpack %2lib386\win\ %1clib3s.win
- unpack %2lib386\ %1math3r.wpk
- unpack %2lib386\ %1math387r.wpk
- unpack %2lib386\ %1math3s.wpk
- unpack %2lib386\ %1math387s.wpk
- if %dos4g unpack %2bin\ %1dos4gw.wpk
- if %dos4g unpack %2bin\ %1rminfo.wpk
- if %dos4g unpack %2binb\ %1wstub.wpk
- if %dos4g unpack %2bin\ %1privatxm.wpk
- #
- # install software on diskette #3
- #
- enter %1wvideo.dos disk 3, labelled "Debugger & Profiler Disk"
- unpack %2bin\ %1wvideo.dos
- if %win3tgt unpack %2binw\ %1wvideow.win
- if %win3tgt unpack %2binw\ %1wvideowl.win
- if %win3tgt unpack %2binw\ %1wdebug.win
- if %win3tgt unpack %2binw\ %1wemu387.win
- if %win3tgt unpack %2binw\ %1vidserv.win
- unpack %2bin\ %1trap.wpk
- unpack %2bin\ %1trap386.wpk
- if %ads unpack %2bin\ %1adshelp.wpk
- if %pls unpack %2bin\ %1plshelp.wpk
- if %dos4g unpack %2bin\ %1rsihelp.wpk
- unpack %2bin\ %1dbglib.wpk
- unpack %2bin\ %1vidserv.dos
- unpack %2bin\ %1chkmouse.wpk
- unpack %2bin\ %1rfx.dos
- unpack %2binb\ %1vid_dbg.386
- unpack %2binb\ %1vid_prs.wpk
- unpack %2binb\ %1vid_help.wpk
- if %wprof unpack %2bin\ %1wprof.dos
- if %wprof if %ecs unpack %2bin\ %1wsampecs.wpk
- if %wprof if %pls unpack %2bin\ %1wsamppls.wpk
- if %wprof if %dos4g unpack %2bin\ %1wsamprsi.wpk
- if %wprof if %win3tgt unpack %2binw\ %1wsamplew.win
- if %wprof unpack %2binb\ %1wprofhlp.wpk
- if %wprof unpack %2bin\ %1wconfig.wpk
- if %wprof unpack %2binb\ %1wconfigh.wpk
- if %wprof unpack %2binb\ %1bench.wpk
- if %wprof unpack %2binb\ %1infobnch.wpk
- unpack %2binb\ %1wtouch.wpk
- if %dos4g unpack %2bin\ %1pminfo.wpk
- if %win3tgt unpack %2binw\ %1win386.win
- if %win3tgt unpack %2binw\ %1w386dll.win
- if %win3tgt unpack %2binb\ %1wbind.wpk
- #
- # install software on diskette #4
- #
- enter %1novserv.nlp disk 4, labelled "Windows Examples Disk"
- if %nlm unpack %2nlm\ %1novserv.nlp
- if %nlm unpack %2nlm\ %1parserv.nlp
- if %nlm unpack %2nlm\ %1serserv.nlp
- if %nlm unpack %2nlm\ %1wsample.nlp
- unpack %2binb\ %1techinfo.wpk
- if %win3tgt unpack %2binw\ %1filedll.win
- if %wex unpack %2src\win\ %1build.wex
- if %wex unpack %2src\win\alarm\ %1alarm.wex
- if %wex unpack %2src\win\chart\ %1chart.wex
- if %wex unpack %2src\win\datactl\ %1datactl.wex
- if %wex unpack %2src\win\edit\ %1edit.wex
- if %wex unpack %2src\win\filedll\ %1filedll.wex
- if %wex unpack %2src\win\generic\ %1generic.wex
- if %wex unpack %2src\win\iconview\ %1iconview.wex
- if %wex unpack %2src\win\life\ %1life.wex
- if %wex unpack %2src\win\shootgal\ %1shootgal.wex
- if %wex unpack %2src\win\watzee\ %1watzee.wex
- #
- # install software on diskette #5
- #
- enter %1sdkwin.win disk 5, labelled "Windows SDK Disk"
- if %doc unpack %2binw\ %1sdkwin.win
- if %win3tgt unpack %2h\ %1win3xhdr.wpk
- if %win3tgt unpack %2src\inc\ %1src_inc.wpk
- if %win3tgt unpack %2binb\ %1hc.wpk
- if %win3tgt unpack %2binb\ %1rc.wpk
- if %win3tgt unpack %2binb\ %1rcpp.wpk
- if %win3tgt unpack %2binb\ %1rcpp_err.wpk
- if %win3tgt unpack %2binw\ %1windebug.win
- if %sdk unpack %2src\dll\ %1dll.sdk
- if %wex unpack %2src\win\helpex\ %1helpex.wex
- if %sdk unpack %2src\sdkpatch\ %1batch.sdk
- if %sdk unpack %2src\sdkpatch\bitmap\ %1bitmap.sdk
- if %sdk unpack %2src\sdkpatch\cliptext\ %1cliptext.sdk
- if %sdk unpack %2src\sdkpatch\clock\ %1clock.sdk
- if %sdk unpack %2src\sdkpatch\cursor\ %1cursor.sdk
- if %sdk unpack %2src\sdkpatch\dde\ %1dde.sdk
- if %sdk unpack %2src\sdkpatch\editcntl\ %1editcntl.sdk
- if %sdk unpack %2src\sdkpatch\editfile\ %1editfile.sdk
- if %sdk unpack %2src\sdkpatch\editmenu\ %1editmenu.sdk
- if %sdk unpack %2src\sdkpatch\fileopen\ %1fileopen.sdk
- if %sdk unpack %2src\sdkpatch\generic\ %1generic.sdk
- if %sdk unpack %2src\sdkpatch\helpex\ %1helpex.sdk
- if %sdk unpack %2src\sdkpatch\icon\ %1icon.sdk
- if %sdk unpack %2src\sdkpatch\input\ %1input.sdk
- if %sdk unpack %2src\sdkpatch\menu\ %1menu.sdk
- if %sdk unpack %2src\sdkpatch\multipad\ %1multipad.sdk
- if %sdk unpack %2src\sdkpatch\mypal\ %1mypal.sdk
- if %sdk unpack %2src\sdkpatch\output\ %1output.sdk
- if %sdk unpack %2src\sdkpatch\owncombo\ %1owncombo.sdk
- if %sdk unpack %2src\sdkpatch\prntfile\ %1prntfile.sdk
- if %sdk unpack %2src\sdkpatch\showfont\ %1showfont.sdk
- if %sdk unpack %2src\sdkpatch\tty\ %1tty.sdk
- #
- # create newconf.sys
- #
- file %2newconf.sys
- > files=20
- #
- # create autoc386.bat
- #
- file %2autoc386.bat
- > path %2bin;%2binb;%2binw
- > set include=%2h
- > set watcom=%2.
- #
- # create cdemo32.bat
- #
- file %2cdemo32.bat
- > path %2bin;%2binb
- > set include=%2h
- > set watcom=%2.
- > wcl386 /l=dos4g %2src\calendar
- > dos4gw calendar
- #
- # create graphics demo
- #
- file %2grdemo32.bat
- > path %2bin;%2binb
- > set include=%2h
- > set watcom=%2.
- > wcl386 /l=dos4g %2src\grdemo
- > dos4gw grdemo
- #
- # set up Windows examples to compile in 32-bit mode
- #
- file %2src\win\build.mif
- > WIN386=1
- #
- # create Windows demo
- #
- file %2windemo.bat
- > path %2bin;%2binb;%2binw
- > set include=%2h
- > set watcom=%2.
- > cd %2src\win
- > call windemo
- > cd %2.
-