From 4ee49a0e5e42fe3995ad42f872c270d118a23c6c Mon Sep 17 00:00:00 2001 Message-Id: <4ee49a0e5e42fe3995ad42f872c270d118a23c6c.1715841045.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 4 May 2014 10:44:25 +0100 Subject: [PATCH] Makefile: Only include one copy of the old signatures. Organization: Straylight/Edgeware From: Mark Wooding If OLDSIGMATCH matches multiple records then we'd previously include multiple copies. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- [mdw]