summaryrefslogtreecommitdiff
path: root/contrib/check_GNU_style.sh
diff options
context:
space:
mode:
authoralalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-10 11:46:08 +0000
committeralalaw01 <alalaw01@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-10 11:46:08 +0000
commitc090a78fe0fefd8c55e92bb269349dc576b1f6f5 (patch)
treec2f0865c36667611eb93ad121f4f2eb2387aa131 /contrib/check_GNU_style.sh
parent8a5bd7fc97eb3f61cff6c0034bdb8f9d233d6a22 (diff)
downloadgcc-c090a78fe0fefd8c55e92bb269349dc576b1f6f5.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218575 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/check_GNU_style.sh')
-rwxr-xr-xcontrib/check_GNU_style.sh3
1 files changed, 1 insertions, 2 deletions
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"