diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-16 19:46:38 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-16 19:46:38 +0000 |
commit | 2986a63f7e513cf37f46db9f211b77071260031f (patch) | |
tree | 9a6e62602396938ea5a612420f53ebf267e8d941 /NetWare/bat/ToggleD2.bat | |
parent | 87b11a197a59fac210fc9265bde0ef1ffe36de89 (diff) | |
download | perl-2986a63f7e513cf37f46db9f211b77071260031f.tar.gz |
NetWare port from Guruprasad S <SGURUPRASAD@novell.com>.
p4raw-id: //depot/perl@10643
Diffstat (limited to 'NetWare/bat/ToggleD2.bat')
-rw-r--r-- | NetWare/bat/ToggleD2.bat | 40 |
1 files changed, 40 insertions, 0 deletions
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 |