From c090a78fe0fefd8c55e92bb269349dc576b1f6f5 Mon Sep 17 00:00:00 2001 From: alalaw01 Date: Wed, 10 Dec 2014 11:46:08 +0000 Subject: check_GNU_style.sh "80 characters exceeded" error fix 2014-12-10 Mantas Mikaitis * contrib/check_GNU_style.sh (col): Got rid of cut operation from the pipe chain and instead added cut inside awk command. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218575 138bc75d-0d04-0410-961f-82ee72b054a4 --- contrib/check_GNU_style.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh index 5f901901306..aed90b4e3a5 100755 --- a/contrib/check_GNU_style.sh +++ b/contrib/check_GNU_style.sh @@ -86,8 +86,7 @@ col (){ shift 1 grep -nH '^+' $* \ | grep -v ':+++' \ - | cut -f 2 -d '+' \ - | awk '{ if (length ($0) > 80) print $0 }' \ + | awk -F':\\+' '{ if (length($2) > 80) print $0}' \ > $tmp if [ -s $tmp ]; then printf "\n$msg\n" -- cgit v1.2.1