Changeset 8295 for trunk/tools
- Timestamp:
- Apr 22, 2002, 4:01:37 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/buildenv.cmd
r8271 r8295 1 /* $Id: buildenv.cmd,v 1. 4 2002-04-16 00:10:12bird Exp $1 /* $Id: buildenv.cmd,v 1.5 2002-04-22 02:01:37 bird Exp $ 2 2 * 3 3 * This is the master environment script. It contains settings for many … … 20 20 */ 21 21 22 Address CMD '@echo off'; 22 23 23 24 /* … … 56 57 do i = 1 to sEnv.0 57 58 /* uses dash to mark end of arguments */ 58 if ( sEnv.i = '-') then59 if ((sEnv.i = '-') | (sEnv.i = '*')) then 59 60 leave; 60 61 … … 77 78 rc = 0; 78 79 select 79 when (sEnv.i = 'mode8050') then Address CMD ' mode 80,50'80 when (sEnv.i = 'mode12050') then Address CMD ' mode 120,50'80 when (sEnv.i = 'mode8050') then Address CMD '@mode 80,50' 81 when (sEnv.i = 'mode12050') then Address CMD '@mode 120,50' 81 82 when (sEnv.i = 'cvs') then rc = CVS(fRM); 82 83 when (sEnv.i = 'db2v52') then rc = db2v52(fRM); … … 145 146 /* 146 147 * Check for command to execute. 147 * (I.e. if there are more arguments left. after the dash .)148 * (I.e. if there are more arguments left. after the dash/star.) 148 149 */ 149 150 if (i < sEnv.0) then 150 151 do 152 chType = sEnv.i; 153 151 154 sCmd = ''; 152 155 do while (i < sEnv.0) … … 154 157 sCmd = sCmd ||' '||sEnv.i; 155 158 end 156 Address CMD 'start /F' sCMD; 157 Address CMD 'exit'; 159 160 if (chType = '-') then 161 do 162 Address CMD 'start /F' sCMD; 163 Address CMD 'exit'; 164 end 165 else 166 Address CMD sCMD; 158 167 exit(rc); 159 168 end … … 941 950 call EnvVar_Set fRM, 'PATH_WATCOM', sPathWatcom 942 951 call EnvVar_Set fRM, 'CCENV', 'WAT' 943 call EnvVar_Set fRM, 'BUILD_ENV', 'WAT11 '952 call EnvVar_Set fRM, 'BUILD_ENV', 'WAT11C' 944 953 call EnvVar_Set fRM, 'BUILD_PLATFORM', 'OS2' 945 954 … … 1165 1174 /* force environment expansion by setting a lot of variables and freeing them. */ 1166 1175 do i = 1 to 100 1167 Address CMD ' set dummyenvvar'||i'=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';1176 Address CMD '@set dummyenvvar'||i'=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; 1168 1177 end 1169 1178 do i = 1 to 100 1170 Address CMD ' set dummyenvvar'||i'=';1179 Address CMD '@set dummyenvvar'||i'='; 1171 1180 end 1172 1181 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.