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
This commit is contained in:
Mantas Mikaitis 2014-12-10 11:46:08 +00:00 committed by Alan Lawrence
parent 73d1736364
commit d0d7c35782
2 changed files with 6 additions and 2 deletions

View File

@ -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"

View 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