Changeset 2758 for trunk/tools
- Timestamp:
- Feb 11, 2000, 4:04:26 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/DoWithDirs.cmd
r2713 r2758 1 /* $Id: DoWithDirs.cmd,v 1. 1 2000-02-09 23:51:34bird Exp $1 /* $Id: DoWithDirs.cmd,v 1.2 2000-02-11 15:04:26 bird Exp $ 2 2 * 3 * Syntax: dowithdirs.cmd [-e<list of excludes>] [-cd] <cmd with args...> 4 * <list of excludes> is a INCLUDE-path styled list of directories. 3 * Syntax: dowithdirs.cmd [-e<list of excludes>] [-cp] [-i] <cmd with args...> 4 * -e Exclude directories. 5 * <list of excludes> is a INCLUDE-path styled list of directories. 6 * -cp CD into the directory and execute the command. 7 * Default action is to pass the directory name as last argument. 8 * -i Ignore command failure (rc=0) 5 9 * 6 10 */ … … 15 19 16 20 /* parse arguments */ 17 parse arg sArg.1 sArg.2 sArg.3 sArg.4 18 sArg.0 = 4;21 parse arg sArg.1 sArg.2 sArg.3 sArg.4 sArg.5 sArg.6 22 sArg.0 = 6; 19 23 do i = 1 to sArg.0 20 24 if (sArg.i <> '') then … … 51 55 do 52 56 fCD = 1; 57 end 58 59 when ch = 'I' then 60 do 61 fIgnoreFailure = 1; 53 62 end 54 63 … … 122 131 123 132 syntax: 124 say 'Syntax: dowithdirs.cmd [-e<list of excludes>] <cmd with args...>'; 133 say 'Syntax: dowithdirs.cmd [-e<list of excludes>] [-cp] [-i] <cmd with args...>'; 134 say ' -e Exclude directories.'; 125 135 say ' <list of excludes> is a INCLUDE-path styled list of directories.'; 136 say ' -cp CD into the directory and execute the command.'; 137 say ' Default action is to pass the directory name as last argument.'; 138 say ' -i Ignore command failure (rc=0)';
Note:
See TracChangeset
for help on using the changeset viewer.