diff options
author | Mantas Mikaitis <mantas.mikaitis@arm.com> | 2014-12-10 11:46:08 +0000 |
---|---|---|
committer | Alan Lawrence <alalaw01@gcc.gnu.org> | 2014-12-10 11:46:08 +0000 |
commit | d0d7c3578223567be0795ac70f4c26e788fc2387 (patch) | |
tree | c2f0865c36667611eb93ad121f4f2eb2387aa131 /contrib | |
parent | 73d1736364dbaa29eba1dce8b9ab6844915529ac (diff) | |
download | gcc-d0d7c3578223567be0795ac70f4c26e788fc2387.zip gcc-d0d7c3578223567be0795ac70f4c26e788fc2387.tar.gz gcc-d0d7c3578223567be0795ac70f4c26e788fc2387.tar.bz2 |
check_GNU_style.sh "80 characters exceeded" error fix
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
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/check_GNU_style.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/check_GNU_style.sh b/contrib/check_GNU_style.sh index 5f90190..aed90b4 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" |