fixes to constant.pm documentation
[p5sagit/p5-mst-13.2.git] / NetWare / bat / MPKBuild.bat
CommitLineData
2986a63f 1@echo off
2@rem AUTHOR: sgp
3@rem CREATED: 22nd May 2000
4@rem LAST REVISED: 6th April 2001
5@rem Batch file to set MPK/Non-MPK builds and toggle XDC flag setting
6@rem This file calls ToggleXDC.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_MPK%" == "" echo USE_MPK is removed, doesn't use MPK APIs
18if not "%USE_MPK%" == "" echo USE_MPK is set, uses MPK APIs, MPKBASE set to %MPKBASE%
19call ToggleXDC %1
20goto exit
21
22:yes
23Set USE_MPK=1
24echo ....USE_MPK is set, uses MPK APIs
25if "%2" == "" goto setdef
26if "%2" == "default" goto setdef
27SET MPKBASE=%2
28:yescon1
29call ToggleXDC on %3 %4
30echo ....MPKBASE set to %MPKBASE%
31goto exit
32
33:no
34Set USE_MPK=
35SET MPKBASE=
36if not "%2" == "" goto xdc_u
37call ToggleXDC off
38:nocon1
39echo ....USE_MPK is removed. doesn't use MPK APIs
40goto exit
41
42:dontknow
43goto Usage
44
45:setdef
46SET MPKBASE=p:\apps\mpk
47goto yescon1
48
49:xdc_u
50call ToggleXDC on %2 %3
51goto nocon1
52
53:Usage
54 @echo on
55 @echo "Usage: MPKBuild [on][off] [[path][default]] [[flag1] [flag2]]"
56 @echo "Usage: MPKBuild /now" - To display current setting
57 @echo Scenarios...
58 @echo ...Use MPK, path set to default and XDC set to -u :MPKBuild on
59 @echo ...Use MPK, path set to default and XDC set to -u :MPKBuild on default -n
60 @echo ...Use MPK, path set to "path" and XDC set to -n :MPKBuild on "path" -n
61 @echo ...Use MPK, path set to default and XDC set to -n, -u :MPKBuild on default -n -u
62 @echo ...No MPK, No XDC :MPKBuild off
63 @echo ...No MPK, Use XDC with -u flag :MPKBuild off -u
64:exit