[svn-r11622] Purpose:

Improvement.

Description:
Added knowledge to recognized an HTML file by its content by looking for <html> tag.

Platforms tested:
heping.
This commit is contained in:
Albert Cheng 2005-10-29 16:32:19 -05:00
parent ebda068f2e
commit c8b3b907b6

View File

@ -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