summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-02-15 01:16:22 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-02-15 01:16:22 (GMT)
commit5ace070ed374c3ff499e823cd0862394862ad474 (patch)
tree58461622f8bf986f1a5e862fe21fecdc73c5aed1 /bin
parente82f6081bd7c657bc6b865ebcf87925234ee05a6 (diff)
downloadhdf5-5ace070ed374c3ff499e823cd0862394862ad474.zip
hdf5-5ace070ed374c3ff499e823cd0862394862ad474.tar.gz
hdf5-5ace070ed374c3ff499e823cd0862394862ad474.tar.bz2
[svn-r13319] Added Caution message of the limit of the -fix feature.
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