diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-10-29 21:32:19 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-10-29 21:32:19 (GMT) |
commit | c8b3b907b66b4604c43247ab7710a2d562512e1d (patch) | |
tree | 97ed19bb0b990cf052d683c22796218b8f4c03bd /bin | |
parent | ebda068f2e043b587167e41f87eaabbbb87f953e (diff) | |
download | hdf5-c8b3b907b66b4604c43247ab7710a2d562512e1d.zip hdf5-c8b3b907b66b4604c43247ab7710a2d562512e1d.tar.gz hdf5-c8b3b907b66b4604c43247ab7710a2d562512e1d.tar.bz2 |
[svn-r11622] Purpose:
Improvement.
Description:
Added knowledge to recognized an HTML file by its content by looking for <html> tag.
Platforms tested:
heping.
Diffstat (limited to 'bin')
-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 |