]> gcc.gnu.org Git - gcc.git/commitdiff
check_GNU_style.sh "80 characters exceeded" error fix
authorMantas Mikaitis <mantas.mikaitis@arm.com>
Wed, 10 Dec 2014 11:46:08 +0000 (11:46 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Wed, 10 Dec 2014 11:46:08 +0000 (11:46 +0000)
2014-12-10  Mantas Mikaitis  <mantas.mikaitis@arm.com>

* 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

contrib/check_GNU_style.sh
gcc/ChangeLog

index 5f90190130609dd245316ff8bd4d69038676818e..aed90b4e3a5ce14366dbb040bce11806a9bf5929 100755 (executable)
@@ -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"
index 58045f5c0c7b28062573ab0168d706b5c3872e2d..a8d919802a7308deb5758f0485bb85bc5e166f1c 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-10  Mantas Mikaitis  <mantas.mikaitis@arm.com>
+
+       * 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  <rguenther@suse.de>
 
        PR tree-optimization/64191
This page took 0.092105 seconds and 5 git commands to generate.