fixes to constant.pm documentation
[p5sagit/p5-mst-13.2.git] / NetWare / bat / ToggleXDC.bat
CommitLineData
2986a63f 1@echo off
2@rem AUTHOR: sgp
3@rem CREATED: 2nd November 1999
4@rem LAST REVISED: 6th April 2001
5@rem Batch file to toggle XDC flag setting, to link with XDC or not
6@rem This file is called from MPKBuild.bat.
7
8if "%1" == "" goto Usage
9
10if "%1" == "/now" goto now
11if "%1" == "on" goto yes
12if "%1" == "off" goto no
13if "%1" == "/?" goto usage
14goto dontknow
15
16:now
17if "%USE_XDC%" == "" echo USE_XDC is removed, doesn't link with XDCDATA
18if not "%USE_XDC%" == "" echo USE_XDC is set, links with XDCDATA, XDCFLAGS = %XDCFLAGS%
19goto exit
20
21:yes
22Set USE_XDC=1
23echo ....USE_XDC is set, links with XDCDATA
24if "%2" == "" SET XDCFLAGS=-n
25if not "%2" == "" SET XDCFLAGS=%2
26if not "%3" == "" SET XDCFLAGS=%XDCFLAGS% %3
27echo ....XDCFLAGS set to %XDCFLAGS%
28goto exit
29
30:no
31Set USE_XDC=
32SET XDCFLAGS=
33echo ....USE_XDC is removed. doesn't link with XDCDATA
34goto exit
35
36:dontknow
37goto Usage
38
39:Usage
40 @echo on
41 @echo "Usage: ToggleXDC [on|off] [[flag1] [flag2]]"
42 @echo "Usage: ToggleD2 /now" - To display current setting
43:exit