Do not print warning messages when there are no occurences.

2010-07-02  Sebastian Pop  <sebastian.pop@amd.com>

	* check_GNU_style.sh: Do not print warning messages when there are
	no occurences.

From-SVN: r164378
This commit is contained in:
Sebastian Pop 2010-09-17 19:09:47 +00:00 committed by Sebastian Pop
parent 2b3ded42e2
commit 8cab7c1398
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-07-02 Sebastian Pop <sebastian.pop@amd.com>
* check_GNU_style.sh: Do not print warning messages when there are
no occurences.
2010-09-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc_update: Handle hg, too.

View File

@ -84,8 +84,11 @@ col (){
| grep -v ':+++' \
| cut -f 2 -d '+' \
| awk '{ if (length ($0) > 80) print $0 }' \
> $tmp && printf "\n$msg\n"
cat $tmp
> $tmp
if [ -s $tmp ]; then
printf "\n$msg\n"
cat $tmp
fi
}
col 'Lines should not exceed 80 characters.' $*