This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate perlio:
[perl5.git] / NetWare / bat / ToggleD2.bat
CommitLineData
2986a63f
JH
1@echo off
2@rem AUTHOR: sgp
3@rem CREATED: 23rd August 1999
4@rem LAST REVISED: 6th April 2001
5@rem Batch file to toggle D2 flag for debugging in case of debug build
6@rem and remove in case of release build.
7@rem This file is called from BuildType.bat
8
9if "%1" == "" goto Usage
10
11if "%1" == "/now" goto now
12if "%1" == "on" goto yes
13if "%1" == "off" goto no
14if "%1" == "/?" goto usage
15if "%1" == "/h" goto usage
16goto dontknow
17
18:now
19if "%USE_D2%" == "" echo USE_D2 is removed, uses /d1
20if not "%USE_D2%" == "" echo USE_D2 is set, uses /d2
21goto exit
22
23:yes
24Set USE_D2=1
25echo ....USE_D2 is set, uses /d2
26goto exit
27
28:no
29Set USE_D2=
30echo ....USE_D2 is removed. uses /d1
31goto exit
32
33:dontknow
34goto Usage
35
36:Usage
37 @echo on
38 @echo "Usage: ToggleD2 [on|off]"
39 @echo "Usage: ToggleD2 /now" - To display current setting
40:exit