stupid solaris

This commit is contained in:
rsc 2005-12-15 03:31:07 +00:00
parent b2f08f618b
commit 5348a6013e

13
dist/isum.awk vendored
View file

@ -4,10 +4,11 @@
BEGIN { BEGIN {
# print verbose # print verbose
cd = "" cd = ""
out = "/dev/stdout"; out = "/dev/stdout"
debug = 0
} }
debug { print "# " $0 } debug!=0 { print "# " $0 }
/^$/ { next } /^$/ { next }
@ -24,7 +25,7 @@ debug { print "# " $0 }
next next
} }
/^ / && printtabs { /^ / && printtabs!=0 {
print >out print >out
fflush(out) fflush(out)
next next
@ -58,7 +59,7 @@ debug { print "# " $0 }
cmd = cmd $0 "\n" cmd = cmd $0 "\n"
} }
errors { errors != 0 {
if(debug) print "% errors" if(debug) print "% errors"
printf "%s", cmd >out printf "%s", cmd >out
fflush(out) fflush(out)
@ -70,12 +71,12 @@ errors {
next next
} }
/^(up to date|nothing to see|assuming it will be|loop not entered|conflicts:)/ { /^(conflicts:)/ {
if(debug) print "% skip1" if(debug) print "% skip1"
next next
} }
/is up to date/ { /(up to date|nothing to see|assuming it will be|loop not entered)/ {
next next
} }