>From 382340401f0fe3e28c53c37ff65fac6e7dda57d3 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 1 Jul 2019 00:06:38 -0700
Subject: [PATCH] =?UTF-8?q?Let=20the=20builder=20specify=20gpg=E2=80=99s?=
 =?UTF-8?q?=20name?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Suggested by Matthew Donadio in:
https://mm.icann.org/pipermail/tz/2019-June/028241.html
* Makefile (GPG): New macro.
($(ALL_ASC)): Use it.
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6816d3b..fec0a4f 100644
--- a/Makefile
+++ b/Makefile
@@ -410,6 +410,9 @@ KSHELL=		/bin/bash
 # Name of curl <https://curl.haxx.se/>, used for HTML validation.
 CURL=		curl
 
+# Name of GNU Privacy Guard <https://gnupg.org/>, used to sign distributions.
+GPG=		gpg
+
 # The path where SGML DTDs are kept and the catalog file(s) to use when
 # validating HTML 4.01.  The default should work on both Debian and Red Hat.
 SGML_TOPDIR= /usr
@@ -1069,7 +1072,7 @@ tzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz
 tzdata$(VERSION)-rearguard.tar.gz.asc: tzdata$(VERSION)-rearguard.tar.gz
 tzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz
 $(ALL_ASC):
-		gpg2 --armor --detach-sign $?
+		$(GPG) --armor --detach-sign $?
 
 TYPECHECK_CFLAGS = $(CFLAGS) -DTYPECHECK -D__time_t_defined -D_TIME_T
 typecheck: typecheck_long_long typecheck_unsigned
-- 
2.17.1

