]> granicus.if.org Git - openjpeg/commitdiff
check also for CtrlM in .txt and .cmake files
authorAntonin Descampe <antonin@gmail.com>
Wed, 25 Jan 2006 09:34:32 +0000 (09:34 +0000)
committerAntonin Descampe <antonin@gmail.com>
Wed, 25 Jan 2006 09:34:32 +0000 (09:34 +0000)
CVSROOT/checkCtrlM

index 3d7cbb4d23726435823e933fc1680b0e5d5dc683..8aa532c663e70397de524cc36cec1169ade08eb1 100755 (executable)
@@ -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`