OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / contrib / check_GNU_style.sh
index 6396417..8fb579f 100755 (executable)
@@ -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.' $*