Commit | Line | Data |
2986a63f |
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 | |
9 | if "%1" == "" goto Usage |
10 | |
11 | if "%1" == "/now" goto now |
12 | if "%1" == "on" goto yes |
13 | if "%1" == "off" goto no |
14 | if "%1" == "/?" goto usage |
15 | if "%1" == "/h" goto usage |
16 | goto dontknow |
17 | |
18 | :now |
19 | if "%USE_D2%" == "" echo USE_D2 is removed, uses /d1 |
20 | if not "%USE_D2%" == "" echo USE_D2 is set, uses /d2 |
21 | goto exit |
22 | |
23 | :yes |
24 | Set USE_D2=1 |
25 | echo ....USE_D2 is set, uses /d2 |
26 | goto exit |
27 | |
28 | :no |
29 | Set USE_D2= |
30 | echo ....USE_D2 is removed. uses /d1 |
31 | goto exit |
32 | |
33 | :dontknow |
34 | goto Usage |
35 | |
36 | :Usage |
37 | @echo on |
38 | @echo "Usage: ToggleD2 [on|off]" |
39 | @echo "Usage: ToggleD2 /now" - To display current setting |
40 | :exit |