Changeset 9025 for trunk/tools
- Timestamp:
- Aug 18, 2002, 3:48:54 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/buildenv.cmd
r9024 r9025 1 /* $Id: buildenv.cmd,v 1.1 4 2002-08-18 13:29:20bird Exp $1 /* $Id: buildenv.cmd,v 1.15 2002-08-18 13:48:54 bird Exp $ 2 2 * 3 3 * This is the master tools environment script. It contains environment … … 13 13 * those the original value, for example of no_NO, is not restored. 14 14 * - Same goes for some other stuff, we have no stack of previous values. 15 * 16 * Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net) 17 * 18 * GPL v2 19 * 15 20 */ 16 21 … … 22 27 * Version 23 28 */ 24 sVersion = '1.0. 1[2002-08-18]';29 sVersion = '1.0.2 [2002-08-18]'; 25 30 26 31 /* … … 51 56 say '' 52 57 say 'Actions:' 53 say ' + Install tools in environment. Default action.' 54 say ' - Remove tools from environment.' 58 say ' + Install tool in environment. Default action.' 59 say ' ~ Install tool in environment if it''s configured.' 60 say ' - Remove tool from environment.' 55 61 say ' * Configure tool if needed.' 56 62 say ' ! Forced tool configuretion.' … … 155 161 */ 156 162 ch = substr(sEnv.i, length(sEnv.i), 1); 157 if (ch = '-' | ch = '+' | ch = '*' | ch = '!' | ch = '?' | ch = '@' ) then163 if (ch = '-' | ch = '+' | ch = '*' | ch = '!' | ch = '?' | ch = '@' | ch = '~') then 158 164 sEnv.i = substr(sEnv.i, 1, length(sEnv.i) - 1); 165 else 166 ch = '+'; 159 167 fRM = (ch = '-'); 160 168 fCfg = (ch = '*'); … … 162 170 fVerify = (ch = '@') 163 171 fQuery = (ch = '?') 172 fOptional = (ch = '~') 164 173 165 174 /* … … 271 280 else if (fQuery) then 272 281 do 273 /*rc = CfgVerify(j, 1, 1);*/274 282 rc = 0; 275 283 if (\CfgIsConfigured(j)) then … … 277 285 end 278 286 else 279 rc = CfgInstallUninstall(j, fRM); 287 do 288 if (\fOptional) then 289 rc = CfgInstallUninstall(j, fRM); 290 else if (CfgIsConfigured(j)) then 291 rc = CfgInstallUninstall(j, fRM); 292 end 280 293 leave; 281 294 end
Note:
See TracChangeset
for help on using the changeset viewer.