summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-02-15 01:16:57 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-02-15 01:16:57 (GMT)
commit51513772b6eb711360ea9513eccf2de86d4b74b0 (patch)
tree41fb6bacc13bbbceeae6a71a22cee54a385e0f97 /bin
parentb52c91842d9683c25c678574aeca269acd7b8a7f (diff)
downloadhdf5-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-xbin/chkcopyright16
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