root/trunk/setenvtx.cmd

Revision 1, 1.7 kB (checked in by jvw, 3 years ago)

Initial check-in for TxWin? version 1.02 sources

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