summaryrefslogtreecommitdiff
path: root/NetWare/bat
diff options
context:
space:
mode:
Diffstat (limited to 'NetWare/bat')
-rw-r--r--NetWare/bat/BldNWExt.bat39
-rw-r--r--NetWare/bat/Buildtype.bat53
-rw-r--r--NetWare/bat/MPKBuild.bat64
-rw-r--r--NetWare/bat/SetNWBld.bat62
-rw-r--r--NetWare/bat/Setmpksdk.bat27
-rw-r--r--NetWare/bat/Setnlmsdk.bat28
-rw-r--r--NetWare/bat/Setwatcom.bat28
-rw-r--r--NetWare/bat/ToggleD2.bat40
-rw-r--r--NetWare/bat/ToggleXDC.bat43
9 files changed, 384 insertions, 0 deletions
diff --git a/NetWare/bat/BldNWExt.bat b/NetWare/bat/BldNWExt.bat
new file mode 100644
index 0000000000..bdeddbbe56
--- /dev/null
+++ b/NetWare/bat/BldNWExt.bat
@@ -0,0 +1,39 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: Sat Apr 14 13:05:44 2001
+@rem LAST REVISED: Sat Apr 14 2001
+@rem Batch file to toggle b/n building and not building NetWare
+@rem specific extns - cgi2perl & perl2ucs.
+
+if "%1" == "" goto Usage
+
+if "%1" == "/now" goto now
+if "%1" == "on" goto yes
+if "%1" == "off" goto no
+if "%1" == "/?" goto usage
+if "%1" == "/h" goto usage
+goto dontknow
+
+:now
+if not "%NW_EXTNS%" == "yes" echo NW_EXTNS is removed, doesn't build NetWare specific extensions
+if "%NW_EXTNS%" == "yes" echo NW_EXTNS is set, builds NetWare specific extensions
+goto exit
+
+:yes
+Set NW_EXTNS=yes
+echo ....NW_EXTNS is set, builds NetWare specific extensions
+goto exit
+
+:no
+Set NW_EXTNS=
+echo ....NW_EXTNS is removed, doesn't build NetWare specific extensions
+goto exit
+
+:dontknow
+goto Usage
+
+:Usage
+ @echo on
+ @echo "Usage: BldNWExt [on|off]"
+ @echo "Usage: BldNWExt /now" - To display current setting
+:exit
diff --git a/NetWare/bat/Buildtype.bat b/NetWare/bat/Buildtype.bat
new file mode 100644
index 0000000000..9f39da7241
--- /dev/null
+++ b/NetWare/bat/Buildtype.bat
@@ -0,0 +1,53 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: 24th July 2000
+@rem LAST REVISED: 6th April 2001
+@rem Batch file to set debug/release build and toggle D2 flag for
+@rem debugging in case of debug build.
+@rem This file calls ToggleD2.bat which switches b/n d2 & d1 flags
+
+if "%1" == "" goto Usage
+if "%1" == "/now" goto now
+if "%1" == "/?" goto usage
+if "%1" == "/h" goto usage
+
+if "%1" == "r" goto set_type_rel
+if "%1" == "R" goto set_type_rel
+
+if "%1" == "d" goto set_type_dbg
+if "%1" == "D" goto set_type_dbg
+
+Rem Invalid input, display help message
+goto Usage
+
+:set_type_rel
+set MAKE_TYPE=Release
+echo ....Build set to %MAKE_TYPE%
+goto set_d2_off
+
+:set_type_dbg
+set MAKE_TYPE=Debug
+echo ....Build set to %MAKE_TYPE%
+if "%2" == "" goto set_d2_off
+call ToggleD2 %2
+
+goto exit
+
+:set_d2_off
+call ToggleD2 off
+goto exit
+
+:now
+if "%MAKE_TYPE%" == "" echo MAKE_TYPE is not set, hence it defaults to Release build
+if not "%MAKE_TYPE%" == "" echo Current build type is - %MAKE_TYPE%
+call ToggleD2 /now
+goto exit
+
+:Usage
+ @echo on
+ @echo "Usage: buildtype r/R|d/D [on/off]"
+ @echo on/off - Toggling D2 flag for debug build
+ @echo "Usage: buildtype /now" - To display current setting
+ @echo Ex. buildtype d on
+
+:exit
diff --git a/NetWare/bat/MPKBuild.bat b/NetWare/bat/MPKBuild.bat
new file mode 100644
index 0000000000..0740906d1a
--- /dev/null
+++ b/NetWare/bat/MPKBuild.bat
@@ -0,0 +1,64 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: 22nd May 2000
+@rem LAST REVISED: 6th April 2001
+@rem Batch file to set MPK/Non-MPK builds and toggle XDC flag setting
+@rem This file calls ToggleXDC.bat
+
+if "%1" == "" goto Usage
+
+if "%1" == "/now" goto now
+if "%1" == "on" goto yes
+if "%1" == "off" goto no
+if "%1" == "/?" goto usage
+goto dontknow
+
+:now
+if "%USE_MPK%" == "" echo USE_MPK is removed, doesn't use MPK APIs
+if not "%USE_MPK%" == "" echo USE_MPK is set, uses MPK APIs, MPKBASE set to %MPKBASE%
+call ToggleXDC %1
+goto exit
+
+:yes
+Set USE_MPK=1
+echo ....USE_MPK is set, uses MPK APIs
+if "%2" == "" goto setdef
+if "%2" == "default" goto setdef
+SET MPKBASE=%2
+:yescon1
+call ToggleXDC on %3 %4
+echo ....MPKBASE set to %MPKBASE%
+goto exit
+
+:no
+Set USE_MPK=
+SET MPKBASE=
+if not "%2" == "" goto xdc_u
+call ToggleXDC off
+:nocon1
+echo ....USE_MPK is removed. doesn't use MPK APIs
+goto exit
+
+:dontknow
+goto Usage
+
+:setdef
+SET MPKBASE=p:\apps\mpk
+goto yescon1
+
+:xdc_u
+call ToggleXDC on %2 %3
+goto nocon1
+
+:Usage
+ @echo on
+ @echo "Usage: MPKBuild [on][off] [[path][default]] [[flag1] [flag2]]"
+ @echo "Usage: MPKBuild /now" - To display current setting
+ @echo Scenarios...
+ @echo ...Use MPK, path set to default and XDC set to -u :MPKBuild on
+ @echo ...Use MPK, path set to default and XDC set to -u :MPKBuild on default -n
+ @echo ...Use MPK, path set to "path" and XDC set to -n :MPKBuild on "path" -n
+ @echo ...Use MPK, path set to default and XDC set to -n, -u :MPKBuild on default -n -u
+ @echo ...No MPK, No XDC :MPKBuild off
+ @echo ...No MPK, Use XDC with -u flag :MPKBuild off -u
+:exit
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
diff --git a/NetWare/bat/Setmpksdk.bat b/NetWare/bat/Setmpksdk.bat
new file mode 100644
index 0000000000..3404fa4fd9
--- /dev/null
+++ b/NetWare/bat/Setmpksdk.bat
@@ -0,0 +1,27 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: 24th July 2000
+@rem LAST REVISED: 6th April 2001
+@rem Batch file to set the path to MPK SDK
+@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 MPKBASE=%1
+echo MPKBASE set to %1
+
+goto exit
+
+:now
+@echo MPKBASE=%MPKBASE%
+goto exit
+
+:Usage
+ @echo on
+ @echo "Usage: setmpksdk <path to MPK sdk>"
+ @echo "Usage: setmpksdk /now" - To display current setting
+ @echo Ex. setmpksdk p:\sw\mpk
+:exit
diff --git a/NetWare/bat/Setnlmsdk.bat b/NetWare/bat/Setnlmsdk.bat
new file mode 100644
index 0000000000..82fcf8bd28
--- /dev/null
+++ b/NetWare/bat/Setnlmsdk.bat
@@ -0,0 +1,28 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: 24th July 2000
+@rem LAST REVISED: 6th April 2001
+@rem Batch file to set the path to NetWare SDK
+@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 NLMSDKBASE=%1
+echo NLMSDKBASE set to %1
+
+goto exit
+
+:now
+@echo NLMSDKBASE=%NLMSDKBASE%
+goto exit
+
+:Usage
+ @echo on
+ @echo "Usage: setnlmsdk <path to NetWare sdk>"
+ @echo "Usage: setnlmsdk /now" - To display current setting
+ @echo Ex. setnlmsdk e:\sdkcd14\nwsdk
+:exit
+
diff --git a/NetWare/bat/Setwatcom.bat b/NetWare/bat/Setwatcom.bat
new file mode 100644
index 0000000000..445ac67bb1
--- /dev/null
+++ b/NetWare/bat/Setwatcom.bat
@@ -0,0 +1,28 @@
+@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
+
diff --git a/NetWare/bat/ToggleD2.bat b/NetWare/bat/ToggleD2.bat
new file mode 100644
index 0000000000..d3f5d2c44e
--- /dev/null
+++ b/NetWare/bat/ToggleD2.bat
@@ -0,0 +1,40 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: 23rd August 1999
+@rem LAST REVISED: 6th April 2001
+@rem Batch file to toggle D2 flag for debugging in case of debug build
+@rem and remove in case of release build.
+@rem This file is called from BuildType.bat
+
+if "%1" == "" goto Usage
+
+if "%1" == "/now" goto now
+if "%1" == "on" goto yes
+if "%1" == "off" goto no
+if "%1" == "/?" goto usage
+if "%1" == "/h" goto usage
+goto dontknow
+
+:now
+if "%USE_D2%" == "" echo USE_D2 is removed, uses /d1
+if not "%USE_D2%" == "" echo USE_D2 is set, uses /d2
+goto exit
+
+:yes
+Set USE_D2=1
+echo ....USE_D2 is set, uses /d2
+goto exit
+
+:no
+Set USE_D2=
+echo ....USE_D2 is removed. uses /d1
+goto exit
+
+:dontknow
+goto Usage
+
+:Usage
+ @echo on
+ @echo "Usage: ToggleD2 [on|off]"
+ @echo "Usage: ToggleD2 /now" - To display current setting
+:exit
diff --git a/NetWare/bat/ToggleXDC.bat b/NetWare/bat/ToggleXDC.bat
new file mode 100644
index 0000000000..eafe4ed2a0
--- /dev/null
+++ b/NetWare/bat/ToggleXDC.bat
@@ -0,0 +1,43 @@
+@echo off
+@rem AUTHOR: sgp
+@rem CREATED: 2nd November 1999
+@rem LAST REVISED: 6th April 2001
+@rem Batch file to toggle XDC flag setting, to link with XDC or not
+@rem This file is called from MPKBuild.bat.
+
+if "%1" == "" goto Usage
+
+if "%1" == "/now" goto now
+if "%1" == "on" goto yes
+if "%1" == "off" goto no
+if "%1" == "/?" goto usage
+goto dontknow
+
+:now
+if "%USE_XDC%" == "" echo USE_XDC is removed, doesn't link with XDCDATA
+if not "%USE_XDC%" == "" echo USE_XDC is set, links with XDCDATA, XDCFLAGS = %XDCFLAGS%
+goto exit
+
+:yes
+Set USE_XDC=1
+echo ....USE_XDC is set, links with XDCDATA
+if "%2" == "" SET XDCFLAGS=-n
+if not "%2" == "" SET XDCFLAGS=%2
+if not "%3" == "" SET XDCFLAGS=%XDCFLAGS% %3
+echo ....XDCFLAGS set to %XDCFLAGS%
+goto exit
+
+:no
+Set USE_XDC=
+SET XDCFLAGS=
+echo ....USE_XDC is removed. doesn't link with XDCDATA
+goto exit
+
+:dontknow
+goto Usage
+
+:Usage
+ @echo on
+ @echo "Usage: ToggleXDC [on|off] [[flag1] [flag2]]"
+ @echo "Usage: ToggleD2 /now" - To display current setting
+:exit