Changeset 2758 for trunk/tools


Ignore:
Timestamp:
Feb 11, 2000, 4:04:26 PM (26 years ago)
Author:
bird
Message:

Update, -i implemented.

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:34 bird Exp $
     1/* $Id: DoWithDirs.cmd,v 1.2 2000-02-11 15:04:26 bird Exp $
    22 *
    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)
    59 *
    610 */
     
    1519
    1620    /* 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;
    1923    do i = 1 to sArg.0
    2024        if (sArg.i <> '') then
     
    5155                    do
    5256                        fCD = 1;
     57                    end
     58
     59                    when ch = 'I' then
     60                    do
     61                        fIgnoreFailure = 1;
    5362                    end
    5463
     
    122131
    123132syntax:
    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.';
    125135    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.