X-Git-Url: https://git.distorted.org.uk/~mdw/dnserr/blobdiff_plain/5d3790e300c1050d2ea4a50837e6d732d7181502..4ee49a0e5e42fe3995ad42f872c270d118a23c6c:/Makefile diff --git a/Makefile b/Makefile index d623e18..d1c6653 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,10 @@ CLEAN += t.oldsig 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 rm t.oldsig