Changeset 5762 for trunk/src/win32k
- Timestamp:
- May 19, 2001, 10:53:04 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/configure.cmd
r5499 r5762 1 /* $Id: configure.cmd,v 1.1 8 2001-04-14 07:22:12bird Exp $1 /* $Id: configure.cmd,v 1.19 2001-05-19 20:53:04 bird Exp $ 2 2 * 3 3 * Configuration script. … … 37 37 when (ch = '?' | ch = 'H' | substr(sArg, 1, 2) = '-H') then 38 38 do 39 say 'Odin32 Configure.cmd. $Revision: 1.1 8$.'39 say 'Odin32 Configure.cmd. $Revision: 1.19 $.' 40 40 say 'syntax: Configure.cmd [-n] [-w]' 41 41 say ' -n Noninteractive.' … … 61 61 do 62 62 call lineout sIncFile, '################################################################################' 63 call lineout sIncFile, '# Generated by 'directory()' configure.cmd'64 call lineout sIncFile, '################################################################################' ;65 call lineout sIncFile, '' 66 call lineout sIncFile, '################################################################################' 67 call lineout sIncFile, '# BASE DIRECTORIES - Win32K'63 call lineout sIncFile, '# Generated by 'directory()'\configure.cmd' 64 call lineout sIncFile, '################################################################################' 65 call lineout sIncFile, '' 66 call lineout sIncFile, '################################################################################' 67 call lineout sIncFile, '# BASE DIRECTORIES - Win32K' 68 68 call lineout sIncFile, '# Note! These should be absolute paths!' 69 69 call lineout sIncFile, '################################################################################' … … 92 92 93 93 call lineout sIncFile, '################################################################################' 94 call lineout sIncFile, '# DDKPATH: base directory of ddk base . (ie. \DDK\BASE not \DDK for DDK v4.0+)'94 call lineout sIncFile, '# DDKPATH: base directory of ddk base (ie. \DDK\BASE not \DDK for DDK v4.0+).' 95 95 call lineout sIncFile, '################################################################################' 96 96 sDDK = SearchPaths('INCLUDE', '..\h\dhcalls.h', 'PATH', '..\h\dhcalls.h', 'BOOKSHELF', '..\base\.\h\dhcalls.h', 'Path to DDK "\BASE" directory (ie. F:\DDK\BASE):'); 97 sDDK = ValidatePath(sDDK, 'h\devhdr.h', 'DDK Base Path'); 97 98 call lineout sIncFile, 'DDKPATH =' sDDK 98 99 call lineout sIncFile, '' … … 102 103 call lineout sIncFile, '################################################################################' 103 104 sTLKT = SearchPaths('INCLUDE', '..\h\os2.h', 'PATH', '..\h\os2.h', 'BOOKSHELF', '..\h\os2.h', 'Path to OS/2 Toolkit directory:'); 105 sTLKT = ValidatePath(sTLKT, 'h\bsememf.h', 'OS/2 Toolkit Path'); 104 106 call lineout sIncFile, 'TOOLKIT =' sTLKT 105 107 call lineout sIncFile, '' … … 108 110 call lineout sIncFile, '# IBM VisualAge for C++ base path' 109 111 call lineout sIncFile, '################################################################################' 110 sVA = Value('CPPMAIN',, 'OS2ENVIRONMENT'); /* no sure if CPPMAIN or CPPLOCAL is the one to search... */ 112 sVA = Value('CPPMAIN',, 'OS2ENVIRONMENT'); /* not sure if CPPMAIN or CPPLOCAL is the one to search... */ 113 if (sVA <> '' & stream(sVA'\bin\icc.exe', 'c', 'query exists') = '') then 114 sVA = '' 111 115 if (sVA = '') then 112 116 sVA = SearchPaths('PATH', 'icc.exe', 'BOOKSHELF', '..\bin\icc.exe', 'Path to IBM VisualAge for C++ or IBM C and C++ Compilers, and set its environment you compile:'); 117 sVA = ValidatePath(sVA, 'bin\icc.exe', 'VisualAge Path'); 113 118 call lineout sIncFile, 'VACPATH =' sVA 114 119 call lineout sIncFile, '' … … 118 123 call lineout sIncFile, '################################################################################' 119 124 sMSC = SearchPaths('PATH', '..\binp\c3l.exe', 'INCLUDE', '..\binp\c3l.exe','LIB', '..\binp\c3l.exe', 'Path to Microsoft C v6.0, v6.0a or v7.0 directory:'); 125 sMSC = ValidatePath(sMSC, 'binp\cl.exe', 'Microsoft C Path'); 120 126 call lineout sIncFile, 'MSCPATH =' sMSC 121 127 call lineout sIncFile, '' … … 126 132 sGrep = SearchPaths('PATH', 'grep.exe', 'Path to UNIX-like grep utility which supports -v.'); 127 133 if (sGrep <> '') then 128 call lineout sIncFile, 'GREP =' sGrep || ' grep.exe'134 call lineout sIncFile, 'GREP =' sGrep || '\grep.exe' 129 135 call lineout sIncFile, '' 130 136 … … 149 155 * Display output. 150 156 */ 151 if (0 /*fInteractive = 1*/) then /* currently disabled since we're now called from mai lconfig. */157 if (0 /*fInteractive = 1*/) then /* currently disabled since we're now called from main config. */ 152 158 do 153 159 say 'Configuration completed!' … … 229 235 say '!error! sFile:'sFile 'sPath:'sPath; 230 236 /* debug: say 'sPath:'sPath 'sFile:'sFile */ 231 sPath = substr(sPath, 1, i-1); 232 end 233 234 return sPath; 237 sPath = strip(substr(sPath, 1, i-1), 'T', '\'); 238 end 239 240 return sPath; 241 242 243 /** 244 * Validate if a file exists to ensure that the given path is valid. 245 * @returns The path if valid. If invalid an empty string is returned. 246 */ 247 ValidatePath: procedure 248 parse arg sPath, sFile, sDesc 249 250 rc = stream(sPath'\'sFile, 'c', 'query exists') 251 if (rc <> '') then 252 return sPath; 253 say 'Warning: Validatation of the' sPath 'failed. Win32k.sys will not be built.' 254 say ' path='sPath; 255 return ''; 256
Note:
See TracChangeset
for help on using the changeset viewer.