Changeset 9381 for trunk/tools
- Timestamp:
- Nov 1, 2002, 8:40:59 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/buildenv.cmd
r9349 r9381 1 /* $Id: buildenv.cmd,v 1.3 6 2002-10-15 12:31:47bird Exp $1 /* $Id: buildenv.cmd,v 1.37 2002-11-01 19:40:59 bird Exp $ 2 2 * 3 3 * This is the master tools environment script. It contains environment … … 27 27 * Version 28 28 */ 29 sVersion = '1.0. 9 [2002-10-15]';29 sVersion = '1.0.10 [2002-11-01]'; 30 30 31 31 /* … … 122 122 aCfg.i.sId = 'ida414'; aCfg.i.sGrp = 'misc'; aCfg.i.sSet = 'IDA414'; aCfg.i.sDesc = 'Interactive DisAssembler (IDA) v4.14'; i = i + 1; 123 123 aCfg.i.sId = 'idasdk'; aCfg.i.sGrp = 'misc'; aCfg.i.sSet = 'IDASDK'; aCfg.i.sDesc = 'Interactive DisAssembler (IDA) SDK'; i = i + 1; 124 aCfg.i.sId = 'java131'; aCfg.i.sGrp = 'java'; aCfg.i.sSet = 'Java131'; aCfg.i.sDesc = 'Java v1.3.1 (co131-20020710)'; i = i + 1; 124 125 aCfg.i.sId = 'mode12050'; aCfg.i.sGrp = 'misc'; aCfg.i.sSet = 'Mode,120,50'; aCfg.i.sDesc = 'mode 120,50'; i = i + 1; 125 126 aCfg.i.sId = 'mode8050'; aCfg.i.sGrp = 'misc'; aCfg.i.sSet = 'Mode,80,50'; aCfg.i.sDesc = 'mode 80,50'; i = i + 1; … … 581 582 * @param sFile Name of the file to look for. 582 583 * @param fQuiet Flag which tells whether to be quiet or not. 583 * @param fOptional Flag to say that this file is optiona .584 * @param fOptional Flag to say that this file is optional. 584 585 * @returns TRUE if file exists. 585 586 * FALSE if file doesn't exists. … … 842 843 aPath.i.sPId = 'ida414'; aPath.i.sPath = 'f:\ida414'; i = i + 1; 843 844 aPath.i.sPId = 'idasdk'; aPath.i.sPath = 'f:\idasdk'; i = i + 1; 845 aPath.i.sPId = 'java131'; aPath.i.sPath = 'e:\java131'; i = i + 1; 844 846 aPath.i.sPId = 'ddk'; aPath.i.sPath = 'f:\ddk\april02'; i = i + 1; 845 847 aPath.i.sPId = 'ddkbase'; aPath.i.sPath = 'f:\ddk\april02\base'; i = i + 1; … … 941 943 aPath.i.sPId = 'ida414'; aPath.i.sPath = 'd:\dev\ida\v414'; i = i + 1; 942 944 /*aPath.i.sPId = 'idasdk'; aPath.i.sPath = 'e:\idasdk'; i = i + 1; */ 945 aPath.i.sPId = 'java131'; aPath.i.sPath = 'd:\java131'; i = i + 1; 943 946 aPath.i.sPId = 'ddk'; aPath.i.sPath = 'd:\dev\ddk\june02'; i = i + 1; 944 947 aPath.i.sPId = 'ddkbase'; aPath.i.sPath = 'd:\dev\ddk\june02\base'; i = i + 1; … … 2235 2238 2236 2239 /* 2240 * JAVA v1.3.1 (latest) 2241 */ 2242 Java131: procedure expose aCfg. aPath. sPathFile 2243 parse arg sToolId,sOperation,fRM,fQuiet 2244 /* 2245 * JAVA main directory. 2246 */ 2247 sPathJava = PathQuery('java131', sToolId, sOperation); 2248 if (sPathJava = '') then 2249 return 1; 2250 /* If config operation we're done now. */ 2251 if (pos('config', sOperation) > 0) then 2252 return 0; 2253 2254 /* 2255 * Installing the environment variables. 2256 */ 2257 call EnvSet fRM, 'PATH_JAVA', sPathJava 2258 call EnvSet fRM, 'PATH_JAVA131', sPathJava 2259 call EnvAddFront fRM, 'path', sPathJava'\bin;'sPathJava'\jre\bin;' 2260 call EnvAddFront fRM, 'beginlibpath', sPathJava'\jre\dll;'sPathJava'\jre\bin;'sPathJava'\icatjava\dll;' 2261 /* call EnvAddFront fRM, 'classpath', sPathJava'\jre\dll;'sPathJava'\jre\bin;'sPathJava'\icatjava\dll;' 2262 */ 2263 /* 2264 * Verify. 2265 */ 2266 if (pos('verify', sOperation) <= 0) then 2267 return 0; 2268 if ( \CfgVerifyFile(sPathJava'\bin\javac.exe', fQuiet), 2269 | \CfgVerifyFile(sPathJava'\bin\jar.exe', fQuiet), 2270 | \CfgVerifyFile(sPathJava'\lib\tools.jar', fQuiet), 2271 | \CfgVerifyFile(sPathJava'\lib\javai.lib', fQuiet), 2272 | \CfgVerifyFile(sPathJava'\jre\dll\jv12mi36.dll', fQuiet), 2273 | \CfgVerifyFile(sPathJava'\jre\bin\java.exe', fQuiet), 2274 | \CfgVerifyFile(sPathJava'\jre\bin\jitc.dll', fQuiet), 2275 | \CfgVerifyFile(sPathJava'\jre\bin\javaw.exe', fQuiet), 2276 | \CfgVerifyFile(sPathJava'\jre\bin\rmid.exe', fQuiet), 2277 | \CfgVerifyFile(sPathJava'\jre\bin\classic\jvm.dll', fQuiet), 2278 | \CfgVerifyFile(sPathJava'\include\int64_md.h', fQuiet), 2279 | \CfgVerifyFile(sPathJava'\include\jawt.h', fQuiet), 2280 | \CfgVerifyFile(sPathJava'\include\jawt_md.h', fQuiet), 2281 | \CfgVerifyFile(sPathJava'\include\jni.h', fQuiet), 2282 | \CfgVerifyFile(sPathJava'\include\jniproto_md.h', fQuiet), 2283 | \CfgVerifyFile(sPathJava'\include\jni_md.h', fQuiet), 2284 | \CfgVerifyFile(sPathJava'\include\jvmdi.h', fQuiet), 2285 | \CfgVerifyFile(sPathJava'\include\jvmpi.h', fQuiet), 2286 | \CfgVerifyFile(sPathJava'\jre\bin\jitc_g.dll', fQuiet, 1), 2287 | \CfgVerifyFile(sPathJava'\jre\bin\classic\jvm_g.dll', fQuiet, 1), 2288 ) then 2289 return 2; 2290 2291 return 0; 2292 2293 2294 /* 2295 * Interactive Disassembler (IDA) Plugin SDK (v5.0?) 2296 */ 2297 IDASDK: procedure expose aCfg. aPath. sPathFile 2298 parse arg sToolId,sOperation,fRM,fQuiet 2299 /* 2300 * IDA main directory. 2301 */ 2302 sPathIDASDK = PathQuery('idasdk', sToolId, sOperation); 2303 if (sPathIDASDK = '') then 2304 return 1; 2305 /* If config operation we're done now. */ 2306 if (pos('config', sOperation) > 0) then 2307 return 0; 2308 2309 /* 2310 * Installing the environment variables. 2311 */ 2312 call EnvSet fRM, 'PATH_IDASDK', sPathIDASDK 2313 call EnvAddFront fRM, 'include', sPathIDASDK'\include;' 2314 call EnvAddFront fRM, 'lib', sPathIDASDK'\libwat.os2;' 2315 call EnvAddFront fRM, 'path', sPathIDASDK'\bin\os2;' 2316 call EnvAddFront fRM, 'beginlibpath', sPathIDASDK'\bin\os2;' 2317 2318 /* 2319 * Verify. 2320 */ 2321 if (pos('verify', sOperation) <= 0) then 2322 return 0; 2323 if ( \CfgVerifyFile(sPathIDASDK'\os2wat.cfg', fQuiet), 2324 | \CfgVerifyFile(sPathIDASDK'\d32wat.cfg', fQuiet), 2325 | \CfgVerifyFile(sPathIDASDK'\include\exehdr.h', fQuiet), 2326 | \CfgVerifyFile(sPathIDASDK'\include\ida.hpp', fQuiet), 2327 | \CfgVerifyFile(sPathIDASDK'\include\vm.hpp', fQuiet), 2328 | \CfgVerifyFile(sPathIDASDK'\libwat.os2\ida.lib', fQuiet), 2329 | \CfgVerifyFile(sPathIDASDK'\libwat.d32\ida.lib', fQuiet), 2330 | \CfgVerifyFile(sPathIDASDK'\libwat.d32\INIRT386.OBJ', fQuiet), 2331 /* | \CfgVerifyFile(sPathIDASDK'\libbor.d32\ida.lib', fQuiet)*/, 2332 ) then 2333 return 2; 2334 return 0; 2335 2336 2337 /* 2237 2338 * Mode commandline. 2238 2339 */
Note:
See TracChangeset
for help on using the changeset viewer.