diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-10-29 21:32:17 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-10-29 21:32:17 (GMT) |
commit | 0a9236e84a13f897345bab13ca30cf01960ed6a1 (patch) | |
tree | 4d0ab61cb2a723dcf8fb8bfdc9c9e2546e8284bf | |
parent | 8679f8d3ef051f6c4fc9a2f8d5d0273f333c9442 (diff) | |
download | hdf5-0a9236e84a13f897345bab13ca30cf01960ed6a1.zip hdf5-0a9236e84a13f897345bab13ca30cf01960ed6a1.tar.gz hdf5-0a9236e84a13f897345bab13ca30cf01960ed6a1.tar.bz2 |
[svn-r11621] Purpose:
Improvement.
Description:
Added knowledge to recognized an HTML file by its content by looking for <html> tag.
Platforms tested:
heping.
-rwxr-xr-x | bin/chkcopyright | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/chkcopyright b/bin/chkcopyright index 61448d1..d46ad4c 100755 --- a/bin/chkcopyright +++ b/bin/chkcopyright @@ -360,6 +360,9 @@ UNKNOWN_FILE() elif grep '^!' < $tmpfile > /dev/null; then # Some lines start with a "!". It may be a Fortran 9X style file. FORTRAN_SOURCE $f + elif grep -i '^<html>' < $tmpfile > /dev/null; then + # Some lines start with a "<html>". It may be an HTML file. + HTML_FILE $f else # Unknown type. UNKNOWN_TYPE $f |