COIN-OR::LEMON - Graph Library

Changeset 325:0fbbb4bc42dd in lemon-main for scripts


Ignore:
Timestamp:
10/20/08 20:03:14 (16 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Better help message and user question in unify-sources.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/unify-sources.sh

    r324 r325  
    6666function update_done() {
    6767    echo $CHANGED_FILES out of $TOTAL_FILES files has been changed.
    68     echo $WARNED_FILES out of $TOTAL_FILES files has been warned.
     68    echo $WARNED_FILES out of $TOTAL_FILES files triggered warnings.
    6969}
    7070
     
    108108function check_done() {
    109109    echo $FAILED_FILES out of $TOTAL_FILES files has been failed.
    110     echo $WARNED_FILES out of $TOTAL_FILES files has been warned.
     110    echo $WARNED_FILES out of $TOTAL_FILES files triggered warnings.
    111111
    112112    if [ $FAILED_FILES -gt 0 ]
     
    117117        if [ "$WARNING" == 'INTERACTIVE' ]
    118118        then
    119             echo -n "Assume as normal behaviour? (yes/no) "
     119            echo -n "Are the files with warnings acceptable? (yes/no) "
    120120            while read answer
    121121            do
     
    127127                    return 1
    128128                fi
    129                 echo -n "Assume as normal behaviour? (yes/no) "             
     129                echo -n "Are the files with warnings acceptable? (yes/no) "
    130130            done
    131131        elif [ "$WARNING" == 'WERROR' ]
     
    258258Options:
    259259  --dry-run|-n
    260      Check the given files, but do not modify them.
     260     Check the files, but do not modify them.
    261261  --interactive|-i
    262      If --dry-run is specified and files are warned then a message is
    263      prompted whether the warnings should be turned to errors.
     262     If --dry-run is specified and the checker emits warnings,
     263     then the user is asked if the warnings should be considered
     264     errors.
    264265  --werror|-w
    265      If --dry-run is specified and the warnings are turned to errors.
     266     Make all warnings into errors.
    266267  --all|-a
    267268     All files in the repository will be checked.
    268269  --modified|-m
    269      Check only the modified source files. This option is proper to
    270      use before a commit. E.g. all files which are modified or added
    271      into the repository will be updated.
     270     Check only the modified (and new) source files. This option is
     271     useful to check the modification before making a commit.
    272272  --changed|-c
    273273     Check only the changed source files compared to the parent(s) of
    274      the current hg node.  This option is proper to use as hg hook
    275      script. E.g. to check all your commited source files with this
    276      script add the following section to the appropriate .hg/hgrc
    277      file.
     274     the current hg node.  This option is useful as hg hook script.
     275     To automatically check all your changes before making a commit,
     276     add the following section to the appropriate .hg/hgrc file.
    278277
    279278       [hooks]
Note: See TracChangeset for help on using the changeset viewer.