check also for CtrlM in .txt and .cmake files

This commit is contained in:
Antonin Descampe 2006-01-25 09:34:32 +00:00
parent e6aae96217
commit ebeb57d7d3
1 changed files with 4 additions and 2 deletions

View File

@ -16,8 +16,10 @@ shift 1
for file in "$@"; do
#
# select files with extentions .txx, .cxx, .h, .html, .htm
match=`echo $file | egrep \[\.\]txx\$\|\[\.\]cxx\$\|\[\.\]h\$\|\[\.\]html\$\|\[\.\]htm\$\|\[\.\]c\$`
# select files with extentions .txx, .cxx, .h, .html, .htm, .c, .txt, .cmake
match=`echo $file | egrep
\[\.\]txx\$\|\[\.\]cxx\$\|\[\.\]h\$\|\[\.\]html\$\|\[\.\]htm\$\|\[\.\]c\$\|\[\.\]txt\$\|\[\.\]cmake\$`
if [ "x$match" != "x" ] ; then
count=`grep -n
\$ /dev/null $file|wc -c`