NetWare update from Ananth Kesari.
[p5sagit/p5-mst-13.2.git] / NetWare / bat / SetCodeWar.bat
1 @echo off
2 @rem AUTHOR: sgp & apc
3 @rem CREATED: 24th July 2000
4 @rem LAST REVISED: 6th April 2001
5 @rem LAST REVISED: 22nd May 2002
6 @rem AUTHOR: apc
7 @rem Batch file to set the path to CodeWarrior directories
8 @rem This file is called from SetNWBld.bat.
9
10 if "%1" == "/now" goto now
11 if "%1" == "" goto Usage
12 if "%1" == "/?" goto usage
13 if "%1" == "/h" goto usage
14
15 set CODEWAR=%1
16 ECHO CODEWAR=%1
17
18 call buildtype r
19 @echo Buildtype set to Release type
20
21 set MWCIncludes=%1\include
22 @echo MWCIncludes=%1\include
23 set MWLibraries=%1\lib
24 @echo MWLibraries=%1\lib
25 set MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib
26 @echo MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib
27
28 set PATH=%PATH%;%1\bin;
29 @echo PATH=%PATH%;%1\bin;
30
31 goto exit
32
33 :now
34 @echo CODEWAR=%CODEWAR%
35 goto exit
36
37 :Usage
38  @echo on
39  @echo "Usage: setCodeWar <Path to CodeWarrior binaries>"
40  @echo "Usage: setCodeWar /now" - To display current setting
41  @echo Ex. setCodeWar d:\CodeWar
42
43 :exit
44 @echo off\r
45 @rem AUTHOR: sgp & apc\r
46 @rem CREATED: 24th July 2000\r
47 @rem LAST REVISED: 6th April 2001\r
48 @rem LAST REVISED: 22nd May 2002\r
49 @rem AUTHOR: apc\r
50 @rem Batch file to set the path to CodeWarrior directories\r
51 @rem This file is called from SetNWBld.bat.\r
52 \r
53 if "%1" == "/now" goto now\r
54 if "%1" == "" goto Usage\r
55 if "%1" == "/?" goto usage\r
56 if "%1" == "/h" goto usage\r
57 \r
58 set CODEWAR=%1\r
59 ECHO CODEWAR=%1\r
60 \r
61 call buildtype r\r
62 @echo Buildtype set to Release type\r
63 \r
64 set MWCIncludes=%1\include\r
65 @echo MWCIncludes=%1\include\r
66 set MWLibraries=%1\lib\r
67 @echo MWLibraries=%1\lib\r
68 set MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib\r
69 @echo MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib\r
70 \r
71 set PATH=%PATH%;%1\bin;\r
72 @echo PATH=%PATH%;%1\bin;\r
73 \r
74 goto exit\r
75 \r
76 :now\r
77 @echo CODEWAR=%CODEWAR%\r
78 goto exit\r
79 \r
80 :Usage\r
81  @echo on\r
82  @echo "Usage: setCodeWar <Path to CodeWarrior binaries>"\r
83  @echo "Usage: setCodeWar /now" - To display current setting\r
84  @echo Ex. setCodeWar d:\CodeWar\r
85 \r
86 :exit\r