From: Mantas Mikaitis Date: Wed, 10 Dec 2014 11:46:08 +0000 (+0000) Subject: check_GNU_style.sh "80 characters exceeded" error fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0d7c3578223567be0795ac70f4c26e788fc2387;p=gcc.git 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. From-SVN: r218575 --- 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" diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58045f5c0c7..a8d919802a7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. + 2014-12-10 Richard Biener PR tree-optimization/64191