Commit 8cab7c13 by Sebastian Pop Committed by Sebastian Pop

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
parent 2b3ded42
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> 2010-09-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc_update: Handle hg, too. * gcc_update: Handle hg, too.
......
...@@ -84,8 +84,11 @@ col (){ ...@@ -84,8 +84,11 @@ col (){
| grep -v ':+++' \ | grep -v ':+++' \
| cut -f 2 -d '+' \ | cut -f 2 -d '+' \
| awk '{ if (length ($0) > 80) print $0 }' \ | awk '{ if (length ($0) > 80) print $0 }' \
> $tmp && printf "\n$msg\n" > $tmp
cat $tmp if [ -s $tmp ]; then
printf "\n$msg\n"
cat $tmp
fi
} }
col 'Lines should not exceed 80 characters.' $* col 'Lines should not exceed 80 characters.' $*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment