f9a0da6dd3257386738f00d4da7ac37de9d6de15 galt Sat Jun 12 12:17:22 2010 -0700 converted to git using gitFiles the script that checks for CRLF line terminators diff --git build/dosEolnCheck build/dosEolnCheck index 7070cfa..749a92a 100755 --- build/dosEolnCheck +++ build/dosEolnCheck @@ -2,7 +2,7 @@ usage=' dosEolnCheck kentDir -Check for CVS controlled files that have MS-DOS style EOLNs (CR/LF) +Check for Git-tracked files that have MS-DOS style EOLNs (CR/LF) Arguments: o kentDir - top of kent tree; this should be the "kent" directory, @@ -17,19 +17,18 @@ kentDir="$1" cd $kentDir -cvsStatusFilter=src/utils/cvsTools/cvsStatusFilter -cvs status 2>&1 | $cvsStatusFilter | awk 'NR>1{print $1}' | xargs file | awk ' +gitFiles | awk 'NR>1{print $1}' | xargs file | awk ' /with CRLF line terminators/ { if (crlfCnt == 0) { - print "Error: files in CVS with MS-DOS CRLF line terminators" > "/dev/stderr"; + print "Error: files tracked in Git with MS-DOS CRLF line terminators" > "/dev/stderr"; } print gensub(":","","g", $1) > "/dev/stderr"; crlfCnt++; } END { if (crlfCnt > 0) { - print "Error:",crlfCnt,"files in CVS with MS-DOS CRLF line terminators" > "/dev/stderr"; + print "Error:",crlfCnt,"files tracked in Git with MS-DOS CRLF line terminators" > "/dev/stderr"; exit(1); } }