summaryrefslogtreecommitdiff
path: root/NetWare/bat/SetNWBld.bat
blob: 062c531186e033b3ba8a755e34ae723e499c1cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
@rem AUTHOR: sgp
@rem CREATED: Thu 18th Jan 2001 09:18:08
@rem LAST REVISED: 6th April 2001
@rem Batch file to set the path to NetWare SDK, Watcom directories & MPK SDK
@rem This file calls setnlmsdk.bat, setwatcom.bat & setmpksdk.bat

REM If no parameters are passed, display usage
if "%1" == "" goto Usage
if "%1" == "/?" goto Usage
if "%1" == "/h" goto Usage

REM Display the current settings
if "%1" == "/now" goto now

REM If na is passed, don't set that parameter
if "%1" == "na" goto skip_nlmsdk_msg
:setnwsdk
call setnlmsdk %1
goto skip_nlmsdk_nomsg

:skip_nlmsdk_msg
@echo Retaining NLMSDKBASE=%NLMSDKBASE%
:skip_nlmsdk_nomsg

if "%2" == "" goto exit
if "%2" == "na" goto skip_watcom_msg
:setwatcom
call setwatcom %2
goto skip_watcom_nomsg

:skip_watcom_msg
@echo Retaining WATCOM=%WATCOM%
:skip_watcom_nomsg

if "%3" == "" goto exit
if "%3" == "na" goto skip_mpksdk_msg
:setmpk
call setmpksdk %3
goto skip_mpksdk_nomsg

:skip_mpksdk_msg
@echo Retaining MPKBASE=%MPKBASE%
:skip_mpksdk_nomsg

goto exit

:now
@echo NLMSDKBASE=%NLMSDKBASE%
@echo WATCOM=%WATCOM%
@echo MPKBASE=%MPKBASE%
goto exit

goto exit
:Usage
 @echo on
 @echo "Usage: setnwbld <path to NetWare SDK> [<path to Watcom dir>] [<path to MPK SDK>]"
 @echo "Usage: setnwbld /now" - To display current setting
 @echo Pass na if you don't want to change a setting
 @echo Ex. setnwbld d:\ndk\nwsdk na p:\mpk
 @echo Ex. setnwbld d:\ndk\
:exit