Fix building MAD with C++ - a MAD_PV of "" is illegal, as it will be free()d.
[p5sagit/p5-mst-13.2.git] / NetWare / bat / SetCodeWar.bat
CommitLineData
f355267c 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
10if "%1" == "/now" goto now
11if "%1" == "" goto Usage
12if "%1" == "/?" goto usage
13if "%1" == "/h" goto usage
14
15set CODEWAR=%1
16ECHO CODEWAR=%1
17
18call buildtype r
19@echo Buildtype set to Release type
20
21set MWCIncludes=%1\include
22@echo MWCIncludes=%1\include
23set MWLibraries=%1\lib
24@echo MWLibraries=%1\lib
25set MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib
26@echo MWLibraryFiles=%1\lib\nwpre.obj;%1\lib\mwcrtld.lib
27
28set PATH=%PATH%;%1\bin;
29@echo PATH=%PATH%;%1\bin;
30
31goto exit
32
33:now
34@echo CODEWAR=%CODEWAR%
35goto 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