Changeset 4645 for trunk/tools
- Timestamp:
- Nov 20, 2000, 6:03:14 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/DoWithDirs.cmd
r4639 r4645 1 /* $Id: DoWithDirs.cmd,v 1. 7 2000-11-20 03:09:38bird Exp $1 /* $Id: DoWithDirs.cmd,v 1.8 2000-11-20 05:03:14 bird Exp $ 2 2 * 3 3 * Syntax: dowithdirs.cmd [-e<list of excludes>] [-c] [-i] [-l] [-r] <cmd with args...> … … 84 84 when ch = 'S' then 85 85 do 86 f DontStop = 1;86 fExitOnLock = 0; 87 87 end 88 88 … … 161 161 /* restore old directory and return sucessfully */ 162 162 call directory sOldDir; 163 if (fDontStop) then 164 do 165 say '[ !Lock found, skips directory.]'; 166 iterate; 167 end 168 else 169 do 170 say '[ !Lock found, stops processing.]'; 171 exit(0); 172 end 163 say '[ !Lock found, stops processing.]'; 164 exit(0); 173 165 end 174 say '[ - warning: Skipping '|| asDirs.i || ' - directory was locked.]';166 say '[ !Skipping ' || asDirs.i || ' - directory was locked.]'; 175 167 fOK = 0; 176 168 end … … 191 183 do 192 184 /* complain and fail if errors aren't ignored. */ 193 say '[ - rc = 'ret' ]';185 say '[ - rc = 'ret' ' || asDirs.i || ']'; 194 186 if (\fIgnoreFailure) then 195 187 exit(rc);
Note:
See TracChangeset
for help on using the changeset viewer.