| 1 | @echo off |
|---|
| 2 | rem |
|---|
| 3 | rem Update the driveletter/install-path to match your installation (H: ==> x:) |
|---|
| 4 | rem or call the script with driveletter (and optional path) as parameters |
|---|
| 5 | rem |
|---|
| 6 | rem Make sure you also add the TXPATH directory to the DOS PATH in AUTOEXEC.BAT |
|---|
| 7 | rem to allow the makefiles to find the UPX compression utility |
|---|
| 8 | rem |
|---|
| 9 | rem You may have to set or update the WATCOM environment variable too. |
|---|
| 10 | rem |
|---|
| 11 | echo TxWin develop environment |
|---|
| 12 | echo Use toolkits from OpenWatcom unless a toolkit environment variable exists |
|---|
| 13 | |
|---|
| 14 | set txdrive=H: |
|---|
| 15 | if "%1"=="" goto driveset |
|---|
| 16 | set txdrive=%1 |
|---|
| 17 | :driveset |
|---|
| 18 | |
|---|
| 19 | set txpath=\netlabs\txwin |
|---|
| 20 | if "%2"=="" goto pathset |
|---|
| 21 | set txpath=%2 |
|---|
| 22 | :pathset |
|---|
| 23 | |
|---|
| 24 | if "%screenwidth%"=="768" goto smallscreen |
|---|
| 25 | mode 102,38 |
|---|
| 26 | goto screendone |
|---|
| 27 | :smallscreen |
|---|
| 28 | mode 82,28 |
|---|
| 29 | :screendone |
|---|
| 30 | |
|---|
| 31 | %txdrive% |
|---|
| 32 | cd %txpath%\txlib |
|---|
| 33 | SET PROMPT=RC:$e[0;1;33m$r $e[0;1;36m[TxWin development] $p -$g $e[0m |
|---|
| 34 | if not "%watcom%"=="" goto watcomset |
|---|
| 35 | rem Use to compile with the development REL2 compiler (includes Linux targets) |
|---|
| 36 | set watcom=%txdrive%\ow\rel2 |
|---|
| 37 | :watcomset |
|---|
| 38 | |
|---|
| 39 | :rest |
|---|
| 40 | set path=%watcom%\binp;%watcom%\binw;%txdrive%%txpath%;%path% |
|---|
| 41 | set beginlibpath=%watcom%\binp\dll |
|---|
| 42 | set edpath=%watcom%\eddat |
|---|
| 43 | set help=%watcom%\binp\help;%help% |
|---|
| 44 | set bookshelf=%watcom%\binp\help;%bookshelf% |
|---|
| 45 | set include=%watcom%\h;%txdrive%%txpath%\txlib\include;..\..;..;. |
|---|
| 46 | if "%toolkit%"=="" goto internal |
|---|
| 47 | set os2_include=%toolkit%\h |
|---|
| 48 | set os2tklib=%toolkit%\lib |
|---|
| 49 | set dpath=%dpath%;%toolkit%\msg |
|---|
| 50 | goto os2tkset |
|---|
| 51 | :internal |
|---|
| 52 | set os2_include=%watcom%\h\os2 |
|---|
| 53 | set os2tklib=%watcom%\lib386\os2 |
|---|
| 54 | :os2tkset |
|---|
| 55 | set nt_include=%watcom%\h\nt |
|---|
| 56 | set wintklib=%watcom%\lib386\nt |
|---|
| 57 | set linux_include=%watcom%\lh |
|---|
| 58 | set lintklib=%watcom%\lib386\linux |
|---|
| 59 | set lib= |
|---|