mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[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:
parent
ebda068f2e
commit
c8b3b907b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user