Integrate perlio:
[p5sagit/p5-mst-13.2.git] / NetWare / bat / SetNWDef.bat
CommitLineData
8213a98b 1@echo off
2@rem AUTHOR: apc
3@rem CREATED: Thu 18th Jan 2001 09:18:08
4@rem LAST REVISED: 6th April 2001
5@rem LAST REVISED: 6th May 2002
6@rem Batch file to set the path to Default Buildtype,NetWare SDK, CodeWarrior directories & MPK SDK and MPKbuild options
7@rem This file calls buildtype with release as defualt,setnlmsdk.bat, setcw.bat & setmpksdk.bat and MpkBuild with off as default
8
9REM If no parameters are passed, display usage
10if "%1" == "" goto Usage
11if "%1" == "/?" goto Usage
12if "%1" == "/h" goto Usage
13
14REM Display the current settings
15if "%1" == "/now" goto now
16
17REM If na is passed, don't set that parameter
18if "%1" == "na" goto skip_nlmsdk_msg
19
20:setnwsdk
21call setnlmsdk %1
22goto skip_nlmsdk_nomsg
23
24:skip_nlmsdk_msg
25@echo Retaining NLMSDKBASE=%NLMSDKBASE%
26
27:skip_nlmsdk_nomsg
28if "%2" == "" goto err_exit
29if "%2" == "na" goto skip_cw_msg
30:setcw
31call setcw %2
32goto skip_cw_nomsg
33
34:skip_cw_msg
35@echo Retaining CODEWAR=%CODEWAR%
36:skip_cw_nomsg
37
38if "%3" == "" goto exit
39if "%3" == "na" goto skip_mpksdk_msg
40
41:setmpk
42call setmpksdk %3
43goto exit
44
45:mpksdk_off
46call mpkbuild off
47@echo mpkbuild off
48goto exit
49
50:skip_mpksdk_msg
51@echo Retaining MPKBASE=%MPKBASE%
52goto exit
53
54:now
55@echo NLMSDKBASE=%NLMSDKBASE%
56@echo cw=%cw%
57@echo MPKBASE=%MPKBASE%
58goto exit
59
60goto exit
61
62:err_exit
63@echo Not Enough Parameters
64goto Usage
65
66:Usage
67 @echo on
68 @echo "Usage: setnwbld <path to NetWare SDK> [<path to CodeWarrior dir>] "
69 @echo "Usage: setnwbld /now" - To display current setting
70 @echo Pass na if you don't want to change a setting
71 @echo Ex. setnwbld d:\ndk\nwsdk na
72 @echo Ex. setnwbld d:\ndk\
73:exit