Changeset 10247 for trunk/tools
- Timestamp:
- Sep 14, 2003, 8:50:59 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/buildenv.cmd
r10142 r10247 1 /* $Id: buildenv.cmd,v 1.5 0 2003-06-12 00:45:33bird Exp $1 /* $Id: buildenv.cmd,v 1.51 2003-09-14 18:50: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.21 [2003-06-11]';29 sVersion = '1.1.0 [2003-09-14]'; 30 30 31 31 /* … … 99 99 * Configuration - sorted please! 100 100 */ 101 parse source . . sPathFile .102 sPathFile = sPathFile||'.paths';103 101 aPath.0 = 0; 104 102 … … 229 227 do j = 1 to aCfg.0 230 228 say left(aCfg.j.sId, 15) '-' left(aCfg.j.sGrp, 8) '-' aCfg.j.sDesc 229 sPath = PathQuery(aCfg.j.sId, aCfg.j.sId, 'quietisconfig'); 230 if (sPath <> '') then 231 say ' 'sPath; 231 232 end 232 233 end … … 234 235 do j = 1 to aCfg.0 235 236 if (CfgIsConfigured(j)) then 237 do 236 238 say left(aCfg.j.sId, 15) '-' left(aCfg.j.sGrp, 8) '-' aCfg.j.sDesc 239 sPath = PathQuery(aCfg.j.sId, aCfg.j.sId, 'quietisconfig'); 240 if (sPath <> '') then 241 say ' 'sPath; 242 end 237 243 end 238 244 end … … 360 366 * @param sToolId Tool id. 361 367 */ 362 CfgDesc: procedure expose aCfg. aPath. sPathFile368 CfgDesc: procedure expose aCfg. aPath. 363 369 parse arg sToolId 364 370 do i = 1 to aCfg.0 … … 375 381 * @param sToolId Tool id. 376 382 */ 377 CfgLookup: procedure expose aCfg. aPath. sPathFile383 CfgLookup: procedure expose aCfg. aPath. 378 384 parse arg sToolId 379 385 iTool = 1; … … 392 398 * @param fRM If set we'll uninstall the tool from the environment. 393 399 */ 394 CfgInstallUninstall: procedure expose aCfg. aPath. sPathFile400 CfgInstallUninstall: procedure expose aCfg. aPath. 395 401 parse arg iTool, fRM 396 402 … … 447 453 * @param fForced If set, we'll force a reconfiguration of the tool. 448 454 */ 449 CfgConfigure: procedure expose aCfg. aPath. sPathFile455 CfgConfigure: procedure expose aCfg. aPath. 450 456 parse arg iTool, fForced 451 457 … … 515 521 * @param fCleanup If set we'll clean properly. 516 522 */ 517 CfgVerify: procedure expose aCfg. aPath. sPathFile523 CfgVerify: procedure expose aCfg. aPath. 518 524 parse arg iTool, fQuiet, fCleanup 519 525 … … 571 577 * @param fQuiet If set we'll to a quiet verify. 572 578 */ 573 CfgIsConfigured: procedure expose aCfg. aPath. sPathFile579 CfgIsConfigured: procedure expose aCfg. aPath. 574 580 parse arg iTool 575 581 … … 593 599 * FALSE if file doesn't exists. 594 600 */ 595 CfgVerifyFile: procedure expose aCfg. aPath. sPathFile601 CfgVerifyFile: procedure expose aCfg. aPath. 596 602 parse arg sFile, fQuiet, fOptional 597 603 if (fOptional = '') then fOptional = 0; … … 614 620 * FALSE if file doesn't exists. 615 621 */ 616 CfgVerifyDir: procedure expose aCfg. aPath. sPathFile622 CfgVerifyDir: procedure expose aCfg. aPath. 617 623 parse arg sDir, fQuiet 618 624 rc = SysFileTree(sDir, 'sDirs', 'DO'); … … 633 639 * @param sPathId Program identifier. (lowercase!) 634 640 */ 635 PathQuery: procedure expose aCfg. aPath. sPathFile641 PathQuery: procedure expose aCfg. aPath. 636 642 parse arg sPathId, sToolId, sOperation, fOptional 637 643 … … 698 704 699 705 /** 706 * Determins the full name of the path file to use. 707 * @returns Path to the pathfile to use. The file may not exist. 708 */ 709 PathGetFile: procedure 710 711 /* 712 * Project Specific? 713 */ 714 parse source . . sPathFile . 715 sPathFile = sPathFile||'.paths'; 716 if (FileExists(sPathFile)) then 717 return sPathFile; 718 719 /* 720 * ETC? 721 */ 722 sEtc = EnvGet('ETC'); 723 if (sEtc <> '') then 724 return sEtc||'\BuildEnv.cfg'; 725 return sPathFile; 726 727 728 /** 700 729 * Reads the path file into the 'aPath.' stem. 701 730 */ 702 PathRead: procedure expose aCfg. aPath. sPathFile731 PathRead: procedure expose aCfg. aPath. 703 732 704 733 i = 1; /* Path index */ 705 734 iLine = 0; /* Line # in file */ 735 736 737 sPathFile = PathGetFile(); 706 738 707 739 /* … … 745 777 * Writes the path file from what's in the 'aPath.' stem. 746 778 */ 747 PathWrite: procedure expose aCfg. aPath. sPathFile 779 PathWrite: procedure expose aCfg. aPath. 780 781 sPathFile = PathGetFile(); 748 782 call SysFileDelete(sPathFile); 749 783 do i = 1 to aPath.0 … … 765 799 * @param sPathId The id of the path to remove. 766 800 */ 767 PathRemove: procedure expose aCfg. aPath. sPathFile801 PathRemove: procedure expose aCfg. aPath. 768 802 parse arg sPathId 769 803 … … 800 834 * @param sNewPath Path. 801 835 */ 802 PathSet: procedure expose aCfg. aPath. sPathFile836 PathSet: procedure expose aCfg. aPath. 803 837 parse arg sPathId, sNewPath 804 838 … … 828 862 * Fills 'aPath.' with default settings overwriting anything in the table. 829 863 */ 830 PathSetDefault: procedure expose aCfg. aPath. sPathFile864 PathSetDefault: procedure expose aCfg. aPath. 831 865 i = 1; 832 866 … … 849 883 aPath.i.sPId = 'gcc303'; aPath.i.sPath = 'f:\GCC\v3.0.3beta_os2\emx'; i = i + 1; 850 884 aPath.i.sPId = 'gcc321'; aPath.i.sPath = 'f:\GCC\v3.2.1beta_os2\emx'; i = i + 1; 851 aPath.i.sPId = 'gcc322'; aPath.i.sPath = 'f:\GCC\v3.2.2 alpha1_os2\usr';i = i + 1;885 aPath.i.sPId = 'gcc322'; aPath.i.sPath = 'f:\GCC\v3.2.2beta2_os2\usr'; i = i + 1; 852 886 aPath.i.sPId = 'home'; aPath.i.sPath = 'e:\user\kso'; i = i + 1; 853 887 aPath.i.sPId = 'icatgam'; aPath.i.sPath = 'f:\Icat\v4.0.6rc1_os2'; i = i + 1; … … 1007 1041 * @param sToolId The tool Id. 1008 1042 */ 1009 PathConfig: procedure expose aCfg. aPath. sPathFile1043 PathConfig: procedure expose aCfg. aPath. 1010 1044 parse arg sOperation, sPathId, sToolId 1011 1045 … … 1524 1558 * Concurrent Versions System (CVS) 1525 1559 */ 1526 CVS: procedure expose aCfg. aPath. sPathFile1560 CVS: procedure expose aCfg. aPath. 1527 1561 parse arg sToolId,sOperation,fRM,fQuiet 1528 1562 … … 1572 1606 * EMX 1573 1607 */ 1574 EMX: procedure expose aCfg. aPath. sPathFile1608 EMX: procedure expose aCfg. aPath. 1575 1609 parse arg sToolId,sOperation,fRM,fQuiet 1576 1610 … … 1650 1684 * EMX PGCC - must be installed on to the ordinar EMX. 1651 1685 */ 1652 EMXPGCC: procedure expose aCfg. aPath. sPathFile1686 EMXPGCC: procedure expose aCfg. aPath. 1653 1687 parse arg sToolId,sOperation,fRM,fQuiet 1654 1688 … … 1716 1750 * FreeType v1.3.1 EMX release. 1717 1751 */ 1718 FreeTypeEMX: procedure expose aCfg. aPath. sPathFile1752 FreeTypeEMX: procedure expose aCfg. aPath. 1719 1753 parse arg sToolId,sOperation,fRM,fQuiet 1720 1754 sPathFreeType = PathQuery('freetypeemx', sToolId, sOperation); … … 1748 1782 * IBM DB2 v5.2 1749 1783 */ 1750 db2v52: procedure expose aCfg. aPath. sPathFile1784 db2v52: procedure expose aCfg. aPath. 1751 1785 parse arg sToolId,sOperation,fRM,fQuiet 1752 1786 sPathDB2 = PathQuery('db2v52', sToolId, sOperation); … … 1796 1830 * Device Driver Kit (DDK) base. 1797 1831 */ 1798 DDK: procedure expose aCfg. aPath. sPathFile1832 DDK: procedure expose aCfg. aPath. 1799 1833 parse arg sToolId,sOperation,fRM,fQuiet 1800 1834 … … 1827 1861 * Device Driver Kit (DDK) base. 1828 1862 */ 1829 DDKBase: procedure expose aCfg. aPath. sPathFile1863 DDKBase: procedure expose aCfg. aPath. 1830 1864 parse arg sToolId,sOperation,fRM,fQuiet 1831 1865 … … 1893 1927 * Device Driver Kit (DDK) Video. 1894 1928 */ 1895 DDKVideo: procedure expose aCfg. aPath. sPathFile1929 DDKVideo: procedure expose aCfg. aPath. 1896 1930 parse arg sToolId,sOperation,fRM,fQuiet 1897 1931 … … 1956 1990 * Doxygen v1.2.11.1 for OS/2. 1957 1991 */ 1958 DoxyGen: procedure expose aCfg. aPath. sPathFile1992 DoxyGen: procedure expose aCfg. aPath. 1959 1993 parse arg sToolId,sOperation,fRM,fQuiet 1960 1994 … … 1989 2023 * Note! make .lib of every .a! in 4OS2: for /R %i in (*.a) do if not exist %@NAME[%i].lib emxomf %i 1990 2024 */ 1991 GCC3xx: procedure expose aCfg. aPath. sPathFile2025 GCC3xx: procedure expose aCfg. aPath. 1992 2026 parse arg sToolId,sOperation,fRM,fQuiet,sPathId 1993 2027 … … 2082 2116 * Note! make .lib of every .a! in 4OS2: for /R %i in (*.a) do if not exist %@NAME[%i].lib emxomf %i 2083 2117 */ 2084 GCC322plus: procedure expose aCfg. aPath. sPathFile2118 GCC322plus: procedure expose aCfg. aPath. 2085 2119 parse arg sToolId,sOperation,fRM,fQuiet,sPathId 2086 2120 … … 2119 2153 call EnvAddFront fRM, 'C_INCLUDE_PATH', sGCCForw'/include;' 2120 2154 call EnvAddFront fRM, 'C_INCLUDE_PATH', sGCCForw'/lib/gcc-lib/'sTrgt'/'sVer'/include;' 2155 call EnvAddFront fRM, 'C_INCLUDE_PATH', sGCCForw'/lib/gcc-lib/'sTrgt'/'sVer'/include;' 2121 2156 call EnvAddFront fRM, 'CPLUS_INCLUDE_PATH', sGCCForw'/include;' 2122 call EnvAddFront fRM, 'C_INCLUDE_PATH', sGCCForw'/lib/gcc-lib/'sTrgt'/'sVer'/include;'2123 2157 call EnvAddFront fRM, 'CPLUS_INCLUDE_PATH', sGCCForw'/include/c++/'sVer'/backward;' 2124 2158 call EnvAddFront fRM, 'CPLUS_INCLUDE_PATH', sGCCForw'/include/c++/'sVer'/'sTrgt';' … … 2129 2163 /* is this used? */ 2130 2164 call EnvSet fRM, 'PROTODIR', sGCCForw'/include/c++/gen' 2131 call EnvSet fRM, 'EMXOMFLD_LINKER', 'ILINK -nofree -STUB:'sGCCBack'\bin\os2stub.bin '2132 2165 2133 2166 /* … … 2176 2209 * ICAT Debugger 2177 2210 */ 2178 ICATGam: procedure expose aCfg. aPath. sPathFile2211 ICATGam: procedure expose aCfg. aPath. 2179 2212 parse arg sToolId,sOperation,fRM,fQuiet 2180 2213 sPathICAT = PathQuery('icatgam', sToolId, sOperation); … … 2211 2244 * ICAT Debugger 2212 2245 */ 2213 ICATGam406RC1: procedure expose aCfg. aPath. sPathFile2246 ICATGam406RC1: procedure expose aCfg. aPath. 2214 2247 parse arg sToolId,sOperation,fRM,fQuiet 2215 2248 sPathICAT = PathQuery('icatgam406rc1', sToolId, sOperation); … … 2247 2280 * ICAT Debugger for PE images. 2248 2281 */ 2249 ICATPe: procedure expose aCfg. aPath. sPathFile2282 ICATPe: procedure expose aCfg. aPath. 2250 2283 parse arg sToolId,sOperation,fRM,fQuiet 2251 2284 sPathICAT = PathQuery('icatgam', sToolId, sOperation); … … 2291 2324 * Interactive Disassembler (IDA) v3.80a 2292 2325 */ 2293 IDA38: procedure expose aCfg. aPath. sPathFile2326 IDA38: procedure expose aCfg. aPath. 2294 2327 parse arg sToolId,sOperation,fRM,fQuiet 2295 2328 /* … … 2327 2360 * Interactive Disassembler (IDA) v4.01 2328 2361 */ 2329 IDA40: procedure expose aCfg. aPath. sPathFile2362 IDA40: procedure expose aCfg. aPath. 2330 2363 parse arg sToolId,sOperation,fRM,fQuiet 2331 2364 /* … … 2363 2396 * Interactive Disassembler (IDA) v4.14 2364 2397 */ 2365 IDA414: procedure expose aCfg. aPath. sPathFile2398 IDA414: procedure expose aCfg. aPath. 2366 2399 parse arg sToolId,sOperation,fRM,fQuiet 2367 2400 /* … … 2399 2432 * Interactive Disassembler (IDA) Plugin SDK (v5.0?) 2400 2433 */ 2401 IDASDK: procedure expose aCfg. aPath. sPathFile2434 IDASDK: procedure expose aCfg. aPath. 2402 2435 parse arg sToolId,sOperation,fRM,fQuiet 2403 2436 /* … … 2442 2475 * Interactive Disassembler (IDA) Plugin SDK (v5.0?) 2443 2476 */ 2444 IDASDK: procedure expose aCfg. aPath. sPathFile2477 IDASDK: procedure expose aCfg. aPath. 2445 2478 parse arg sToolId,sOperation,fRM,fQuiet 2446 2479 /* … … 2485 2518 * JAVA v1.3.1 (latest) 2486 2519 */ 2487 Java131: procedure expose aCfg. aPath. sPathFile2520 Java131: procedure expose aCfg. aPath. 2488 2521 parse arg sToolId,sOperation,fRM,fQuiet 2489 2522 /* … … 2540 2573 * (lib) JPEG v6b port. 2541 2574 */ 2542 JPEG: procedure expose aCfg. aPath. sPathFile2575 JPEG: procedure expose aCfg. aPath. 2543 2576 parse arg sToolId,sOperation,fRM,fQuiet 2544 2577 sPathJPEG = PathQuery('jpeg', sToolId, sOperation); … … 2576 2609 * Mode commandline. 2577 2610 */ 2578 Mode: procedure expose aCfg. aPath. sPathFile2611 Mode: procedure expose aCfg. aPath. 2579 2612 parse arg sToolId,sOperation,fRM,fQuiet,cols,rows 2580 2613 … … 2598 2631 * Microsoft C v6.0a 16-bit 2599 2632 */ 2600 MSCV6_16: procedure expose aCfg. aPath. sPathFile2633 MSCV6_16: procedure expose aCfg. aPath. 2601 2634 parse arg sToolId,sOperation,fRM,fQuiet 2602 2635 … … 2648 2681 * Microsoft C v6.0a 32-bit 2649 2682 */ 2650 MSCV6_32: procedure expose aCfg. aPath. sPathFile2683 MSCV6_32: procedure expose aCfg. aPath. 2651 2684 parse arg sToolId,sOperation,fRM,fQuiet 2652 2685 … … 2692 2725 * Microsoft C v7.0 16-bit with OS/2 support. 2693 2726 */ 2694 MSCV7_16: procedure expose aCfg. aPath. sPathFile2727 MSCV7_16: procedure expose aCfg. aPath. 2695 2728 parse arg sToolId,sOperation,fRM,fQuiet 2696 2729 … … 2748 2781 * mySQL Database system 2749 2782 */ 2750 mySQL: procedure expose aCfg. aPath. sPathFile2783 mySQL: procedure expose aCfg. aPath. 2751 2784 parse arg sToolId,sOperation,fRM,fQuiet 2752 2785 … … 2793 2826 * NASM - NetWide Assembler (all versions) 2794 2827 */ 2795 NASM: procedure expose aCfg. aPath. sPathFile2828 NASM: procedure expose aCfg. aPath. 2796 2829 parse arg sToolId,sOperation,fRM,fQuiet,sPathId 2797 2830 … … 2835 2868 * NetQOS2 - help subsystem++ for VAC 3.6.5 and VAC 4.0 2836 2869 */ 2837 NetQOS2: procedure expose aCfg. aPath. sPathFile2870 NetQOS2: procedure expose aCfg. aPath. 2838 2871 parse arg sToolId,sOperation,fRM,fQuiet 2839 2872 sPathNetQOS2 = PathQuery('netqos2', sToolId, sOperation); … … 2877 2910 * Odin32 testcase setup. 2878 2911 */ 2879 Odin32Testcase: procedure expose aCfg. aPath. sPathFile2912 Odin32Testcase: procedure expose aCfg. aPath. 2880 2913 parse arg sToolId,sOperation,fRM,fQuiet 2881 2914 if ( PathQuery('testcase_drive_unused', sToolId, sOperation) = '', … … 2910 2943 * PERL 5005_53 or 5.004_55 2911 2944 */ 2912 Perl50xxx: procedure expose aCfg. aPath. sPathFile2945 Perl50xxx: procedure expose aCfg. aPath. 2913 2946 parse arg sToolId,sOperation,fRM,fQuiet 2914 2947 … … 2962 2995 * PERL v5.8.0 2963 2996 */ 2964 Perl580: procedure expose aCfg. aPath. sPathFile2997 Perl580: procedure expose aCfg. aPath. 2965 2998 parse arg sToolId,sOperation,fRM,fQuiet 2966 2999 … … 3007 3040 * Python/2 v1.5.2 3008 3041 */ 3009 Python: procedure expose aCfg. aPath. sPathFile3042 Python: procedure expose aCfg. aPath. 3010 3043 parse arg sToolId,sOperation,fRM,fQuiet 3011 3044 … … 3046 3079 * OS/2 Programmers Toolkit v4.0 (CSD1/4) 3047 3080 */ 3048 Toolkit40: procedure expose aCfg. aPath. sPathFile3081 Toolkit40: procedure expose aCfg. aPath. 3049 3082 parse arg sToolId,sOperation,fRM,fQuiet 3050 3083 … … 3144 3177 * OS/2 Programmers Toolkit v4.5 3145 3178 */ 3146 Toolkit45: procedure expose aCfg. aPath. sPathFile3179 Toolkit45: procedure expose aCfg. aPath. 3147 3180 parse arg sToolId,sOperation,fRM,fQuiet 3148 3181 … … 3232 3265 * OS/2 Programmers Toolkit v4.5.1 3233 3266 */ 3234 Toolkit451: procedure expose aCfg. aPath. sPathFile3267 Toolkit451: procedure expose aCfg. aPath. 3235 3268 parse arg sToolId,sOperation,fRM,fQuiet 3236 3269 … … 3329 3362 * OS/2 Programmers Toolkit v4.5.2 3330 3363 */ 3331 Toolkit452: procedure expose aCfg. aPath. sPathFile3364 Toolkit452: procedure expose aCfg. aPath. 3332 3365 parse arg sToolId,sOperation,fRM,fQuiet 3333 3366 … … 3430 3463 * This will envolve into an full UNIX like environment some day perhaps... 3431 3464 */ 3432 Unix: procedure expose aCfg. aPath. sPathFile3465 Unix: procedure expose aCfg. aPath. 3433 3466 parse arg sToolId,sOperation,fRM,fQuiet 3434 3467 … … 3488 3521 * IBM Visual Age for C++ v3.08 for OS/2 3489 3522 */ 3490 VAC308: procedure expose aCfg. aPath. sPathFile3523 VAC308: procedure expose aCfg. aPath. 3491 3524 parse arg sToolId,sOperation,fRM,fQuiet 3492 3525 … … 3607 3640 * Visual Age / C and C++ tools v3.6.5 for OS/2 3608 3641 */ 3609 VAC365: procedure expose aCfg. aPath. sPathFile3642 VAC365: procedure expose aCfg. aPath. 3610 3643 parse arg sToolId,sOperation,fRM,fQuiet 3611 3644 … … 3683 3716 * Visual Age for C++ v4.0 for OS/2 3684 3717 */ 3685 VAC40: procedure expose aCfg. aPath. sPathFile3718 VAC40: procedure expose aCfg. aPath. 3686 3719 parse arg sToolId,sOperation,fRM,fQuiet 3687 3720 … … 3759 3792 * WarpIn 3760 3793 */ 3761 WarpIn: procedure expose aCfg. aPath. sPathFile3794 WarpIn: procedure expose aCfg. aPath. 3762 3795 parse arg sToolId,sOperation,fRM,fQuiet 3763 3796 … … 3798 3831 * WatCom C/C++ v11.0 3799 3832 */ 3800 WatComC11: procedure expose aCfg. aPath. sPathFile3833 WatComC11: procedure expose aCfg. aPath. 3801 3834 parse arg sToolId,sOperation,fRM,fQuiet, iBits 3802 3835 … … 3867 3900 * WatCom C/C++ v11.0c 3868 3901 */ 3869 WatComC11c: procedure expose aCfg. aPath. sPathFile3902 WatComC11c: procedure expose aCfg. aPath. 3870 3903 parse arg sToolId,sOperation,fRM,fQuiet, iBits 3871 3904
Note:
See TracChangeset
for help on using the changeset viewer.