changeset 19079:0ba020beb2e4

fix matching of MSDOS line endings The CVS-->Subversion conversion removed the ^M and it is impossible to check one back in. Setting svn:eol-style to CRLF or CR is not an option because it will change the whole file.
author ivo
date Fri, 14 Jul 2006 15:08:31 +0000
parents 4361813f6cae
children 6ff62e005cba
files TOOLS/checktree.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/checktree.sh	Fri Jul 14 13:34:44 2006 +0000
+++ b/TOOLS/checktree.sh	Fri Jul 14 15:08:31 2006 +0000
@@ -257,8 +257,8 @@
 
 if [ "$_crlf" == "yes" ]; then
     printhead "checking for MSDOS line endings ..."
-    grep $_grepopts "
-" $filelist
+    CR=`echo " " | tr ' ' '\015'`
+    grep $_grepopts "$CR" $filelist
 fi
 
 # -----------------------------------------------------------------------------