Comments
Patch
@@ -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-07-08 Eric Botcazou <ebotcazou@adacore.com>
* make_sunver.pl: Remove extra whitespace in regexp.
@@ -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.' $*