summaryrefslogtreecommitdiff
path: root/NetWare/bat/SetNWBld.bat
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-16 19:46:38 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-16 19:46:38 +0000
commit2986a63f7e513cf37f46db9f211b77071260031f (patch)
tree9a6e62602396938ea5a612420f53ebf267e8d941 /NetWare/bat/SetNWBld.bat
parent87b11a197a59fac210fc9265bde0ef1ffe36de89 (diff)
downloadperl-2986a63f7e513cf37f46db9f211b77071260031f.tar.gz
NetWare port from Guruprasad S <SGURUPRASAD@novell.com>.
p4raw-id: //depot/perl@10643
Diffstat (limited to 'NetWare/bat/SetNWBld.bat')
-rw-r--r--NetWare/bat/SetNWBld.bat62
1 files changed, 62 insertions, 0 deletions
diff --git a/NetWare/bat/SetNWBld.bat b/NetWare/bat/SetNWBld.bat
new file mode 100644
index 0000000000..062c531186
--- /dev/null
+++ b/NetWare/bat/SetNWBld.bat
@@ -0,0 +1,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