fixes to constant.pm documentation
[p5sagit/p5-mst-13.2.git] / NetWare / bat / MPKBuild.bat
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
8 if "%1" == "" goto Usage
9
10 if "%1" == "/now" goto now
11 if "%1" == "on" goto yes
12 if "%1" == "off" goto no
13 if "%1" == "/?" goto usage
14 goto dontknow
15
16 :now
17 if "%USE_MPK%" == "" echo USE_MPK is removed, doesn't use MPK APIs
18 if not "%USE_MPK%"  == "" echo USE_MPK is set, uses MPK APIs, MPKBASE set to %MPKBASE%
19 call ToggleXDC %1
20 goto exit
21
22 :yes
23 Set USE_MPK=1
24 echo ....USE_MPK is set, uses MPK APIs
25 if "%2" == "" goto setdef
26 if "%2" == "default" goto setdef
27 SET MPKBASE=%2
28 :yescon1
29 call ToggleXDC on %3 %4
30 echo ....MPKBASE set to %MPKBASE%
31 goto exit
32
33 :no
34 Set USE_MPK=
35 SET MPKBASE=
36 if not "%2" == "" goto xdc_u
37 call ToggleXDC off
38 :nocon1
39 echo ....USE_MPK is removed. doesn't use MPK APIs
40 goto exit
41
42 :dontknow
43 goto Usage
44
45 :setdef
46 SET MPKBASE=p:\apps\mpk
47 goto yescon1
48
49 :xdc_u
50 call ToggleXDC on %2 %3
51 goto 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