summaryrefslogtreecommitdiff
path: root/NetWare
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-27 16:22:06 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-27 16:22:06 +0000
commit8213a98bef1bbbd4199bd867bb676f2fb4424cb0 (patch)
tree79cb007167643cfe964da5e82ab2751d4431bec2 /NetWare
parent4155f99a780753efcc886f7e2d4d526b4554b41b (diff)
downloadperl-8213a98bef1bbbd4199bd867bb676f2fb4424cb0.tar.gz
NetWare diff from Ananth Kesari.
p4raw-id: //depot/perl@16811
Diffstat (limited to 'NetWare')
-rw-r--r--NetWare/bat/SetNWDef.bat73
-rw-r--r--NetWare/bat/Setcw.bat35
-rw-r--r--NetWare/bat/Setwatcom.bat28
3 files changed, 108 insertions, 28 deletions
diff --git a/NetWare/bat/SetNWDef.bat b/NetWare/bat/SetNWDef.bat
new file mode 100644
index 0000000000..3b53cfdf7e
--- /dev/null
+++ b/NetWare/bat/SetNWDef.bat
@@ -0,0 +1,73 @@
+@echo off
+@rem AUTHOR: apc
+@rem CREATED: Thu 18th Jan 2001 09:18:08
+@rem LAST REVISED: 6th April 2001
+@rem LAST REVISED: 6th May 2002
+@rem Batch file to set the path to Default Buildtype,NetWare SDK, CodeWarrior directories & MPK SDK and MPKbuild options
+@rem This file calls buildtype with release as defualt,setnlmsdk.bat, setcw.bat & setmpksdk.bat and MpkBuild with off as default
+
+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 err_exit
+if "%2" == "na" goto skip_cw_msg
+:setcw
+call setcw %2
+goto skip_cw_nomsg
+
+:skip_cw_msg
+@echo Retaining CODEWAR=%CODEWAR%
+:skip_cw_nomsg
+
+if "%3" == "" goto exit
+if "%3" == "na" goto skip_mpksdk_msg
+
+:setmpk
+call setmpksdk %3
+goto exit
+
+:mpksdk_off
+call mpkbuild off
+@echo mpkbuild off
+goto exit
+
+:skip_mpksdk_msg
+@echo Retaining MPKBASE=%MPKBASE%
+goto exit
+
+:now
+@echo NLMSDKBASE=%NLMSDKBASE%
+@echo cw=%cw%
+@echo MPKBASE=%MPKBASE%
+goto exit
+
+goto exit
+
+:err_exit
+@echo Not Enough Parameters
+goto Usage
+
+:Usage
+ @echo on
+ @echo "Usage: setnwbld <path to NetWare SDK> [<path to CodeWarrior dir>] "
+ @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
+ @echo Ex. setnwbld d:\ndk\
+:exit
diff --git a/NetWare/bat/Setcw.bat b/NetWare/bat/Setcw.bat
new file mode 100644
index 0000000000..a2c2f804af
--- /dev/null
+++ b/NetWare/bat/Setcw.bat
@@ -0,0 +1,35 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: 24th July 2000
+@rem LAST REVISED: 6th April 2001
+@rem LAST REVISED: 6th Mayl 2002
+@rem AUTHOR: apc
+@rem Batch file to set the path to CodeWarrior directories
+@rem This file is called from SetNWBld.bat.
+
+if "%1" == "/now" goto now
+if "%1" == "" goto Usage
+if "%1" == "/?" goto usage
+if "%1" == "/h" goto usage
+
+
+set CODEWAR=%1
+call buildtype r
+@echo Buildtype set to Release type
+set MWCIncludes=%1\include
+set MWLibraries=%1\lib
+set MWLibraryFiles=%1\lib\nwpre.obj;p:\apps\script\sw\cw\lib\mwcrtld.lib
+set PATH=%PATH%;p:\apps\script\sw\cw\bin;
+goto exit
+
+:now
+@echo CODEWAR=%CODEWAR%
+goto exit
+
+:Usage
+ @echo on
+ @echo "Usage: setcw <path to CodeWarrior>"
+ @echo "Usage: setcw /now" - To display current setting
+ @echo Ex. setcw d:\CodeWar
+:exit
+
diff --git a/NetWare/bat/Setwatcom.bat b/NetWare/bat/Setwatcom.bat
index 445ac67bb1..e69de29bb2 100644
--- a/NetWare/bat/Setwatcom.bat
+++ b/NetWare/bat/Setwatcom.bat
@@ -1,28 +0,0 @@
-@echo off
-@rem AUTHOR: sgp
-@rem CREATED: 24th July 2000
-@rem LAST REVISED: 6th April 2001
-@rem Batch file to set the path to Watcom directories
-@rem This file is called from SetNWBld.bat.
-
-if "%1" == "/now" goto now
-if "%1" == "" goto Usage
-if "%1" == "/?" goto usage
-if "%1" == "/h" goto usage
-
-set WATCOM=%1
-echo WATCOM set to %1
-
-goto exit
-
-:now
-@echo WATCOM=%WATCOM%
-goto exit
-
-:Usage
- @echo on
- @echo "Usage: setwatcom <path to Watcom>"
- @echo "Usage: setwatcom /now" - To display current setting
- @echo Ex. setwatcom d:\Watcom
-:exit
-