dnserr.zone.sig: dnserr.zone.sigold dnserr.zone.signew
awk '$(OLDSIGMATCH) { print; }' \
dnserr.zone.sigold >t.oldsig
- awk '$(OLDSIGMATCH) { system("cat t.oldsig"); next; } \
+ awk '$(OLDSIGMATCH) { \
+ if (!doneoldsig) { system("cat t.oldsig"); doneoldsig = 1; } \
+ next; \
+ } \
{ gsub(/invalid-rrsigx/, "invalid-rrsig"); print; }' \
- dnserr.zone.signew >$@.new
+ dnserr.zone.signew >$@.new
+ rm t.oldsig
mv $@.new $@
CLEAN += $(TARGETS)