Changeset 2919 for trunk/tools
- Timestamp:
- Feb 27, 2000, 1:40:21 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/DoWithDirs.cmd
r2758 r2919 1 /* $Id: DoWithDirs.cmd,v 1. 2 2000-02-11 15:04:26bird Exp $1 /* $Id: DoWithDirs.cmd,v 1.3 2000-02-27 00:40:21 bird Exp $ 2 2 * 3 3 * Syntax: dowithdirs.cmd [-e<list of excludes>] [-cp] [-i] <cmd with args...> … … 7 7 * Default action is to pass the directory name as last argument. 8 8 * -i Ignore command failure (rc=0) 9 * 9 * -r Process diretories in reverse order. 10 10 */ 11 11 … … 17 17 asIgnore.0 = 0; 18 18 fCD = 0; 19 fReverse = 0; 19 20 20 21 /* parse arguments */ … … 62 63 end 63 64 65 when ch = 'R' then 66 do 67 fReverse = 1; 68 end 69 64 70 otherwise 65 71 say 'unknown argument:' sArg.i; … … 92 98 93 99 sArgDirs = ' '; 94 do i = 1 to asDirs.0 100 do ii = 1 to asDirs.0 101 /* calculate index */ 102 if (fReverse) then 103 i = asDirs.0 - ii + 1; 104 else 105 i = ii; 106 95 107 /* ignore the directory? */ 96 108 fFound = 0; … … 137 149 say ' Default action is to pass the directory name as last argument.'; 138 150 say ' -i Ignore command failure (rc=0)'; 151 say ' -r Process diretories in reverse order.';
Note:
See TracChangeset
for help on using the changeset viewer.