diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2007-02-15 01:16:57 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2007-02-15 01:16:57 (GMT) |
commit | 51513772b6eb711360ea9513eccf2de86d4b74b0 (patch) | |
tree | 41fb6bacc13bbbceeae6a71a22cee54a385e0f97 /bin | |
parent | b52c91842d9683c25c678574aeca269acd7b8a7f (diff) | |
download | hdf5-51513772b6eb711360ea9513eccf2de86d4b74b0.zip hdf5-51513772b6eb711360ea9513eccf2de86d4b74b0.tar.gz hdf5-51513772b6eb711360ea9513eccf2de86d4b74b0.tar.bz2 |
[svn-r13320] Added Caution message of the limit of the -fix feature.
Tested in kagiso.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chkcopyright | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/bin/chkcopyright b/bin/chkcopyright index 4347cec..90e796c 100755 --- a/bin/chkcopyright +++ b/bin/chkcopyright @@ -61,6 +61,16 @@ VMSCMD_COPYRIGHT=/tmp/h5chkright_VMSCMD.$$ # VMS command file Copyright notice tmpfixfile=/tmp/h5chkright_fix.$$ # Temporary fixed copy of file +# Caution message of the fix feature. +FIXCAUTIONMSG() +{ + cat <<EOF +**CAUTION** +The fix is a best attempt. Check the changes before committing them. +EOF +} + + # Help page # USAGE() @@ -78,8 +88,9 @@ Usage: $PROGNAME [-h | -help] [-fname name-patter] [-v | -v9] [dir1 dir2 ...] -v9 highly verbose -fix - fix failed files if possible + fix failed files if possible. EOF + FIXCAUTIONMSG } @@ -843,6 +854,9 @@ echo Number of passed files = $NPASSEDFILES echo Number of failed files = $NFAILEDFILES echo Number of fixed files = $NFIXEDFILES echo Number of fix failed files = $NFIXFAILEDFILES +if [ $NFIXEDFILES -gt 0 ]; then + FIXCAUTIONMSG +fi if [ $NFAILEDFILES -gt 0 ]; then exitcode=1 |