Commit | Line | Data |
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 | |
9 | REM If no parameters are passed, display usage |
10 | if "%1" == "" goto Usage |
11 | if "%1" == "/?" goto Usage |
12 | if "%1" == "/h" goto Usage |
13 | |
14 | REM Display the current settings |
15 | if "%1" == "/now" goto now |
16 | |
17 | REM If na is passed, don't set that parameter |
18 | if "%1" == "na" goto skip_nlmsdk_msg |
19 | |
20 | :setnwsdk |
21 | call setnlmsdk %1 |
22 | goto skip_nlmsdk_nomsg |
23 | |
24 | :skip_nlmsdk_msg |
25 | @echo Retaining NLMSDKBASE=%NLMSDKBASE% |
26 | |
27 | :skip_nlmsdk_nomsg |
28 | if "%2" == "" goto err_exit |
29 | if "%2" == "na" goto skip_cw_msg |
30 | :setcw |
31 | call setcw %2 |
32 | goto skip_cw_nomsg |
33 | |
34 | :skip_cw_msg |
35 | @echo Retaining CODEWAR=%CODEWAR% |
36 | :skip_cw_nomsg |
37 | |
38 | if "%3" == "" goto exit |
39 | if "%3" == "na" goto skip_mpksdk_msg |
40 | |
41 | :setmpk |
42 | call setmpksdk %3 |
43 | goto exit |
44 | |
45 | :mpksdk_off |
46 | call mpkbuild off |
47 | @echo mpkbuild off |
48 | goto exit |
49 | |
50 | :skip_mpksdk_msg |
51 | @echo Retaining MPKBASE=%MPKBASE% |
52 | goto exit |
53 | |
54 | :now |
55 | @echo NLMSDKBASE=%NLMSDKBASE% |
56 | @echo cw=%cw% |
57 | @echo MPKBASE=%MPKBASE% |
58 | goto exit |
59 | |
60 | goto exit |
61 | |
62 | :err_exit |
63 | @echo Not Enough Parameters |
64 | goto 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 |