On 2024-12-08 14:17, Bruno Haible wrote:
It appears that this environment variable can cause trouble in some
situations. Therefore I would be in favour of adding a small paragraph
about it in the 'gnupload --help' output, but*not* set it inside the
script.
OK, done via the attached.
From 23e489faf8013af7aae33d6f91895559ccfe07d8 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Mon, 9 Dec 2024 00:04:57 -0800
Subject: [PATCH] gnupload: mention GPG_TTY
* build-aux/gnupload (usage): Mention GPG_TTY and gpg-agent.
---
ChangeLog | 5 +++++
build-aux/gnupload | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 322b1bac99..6183ab112e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-09 Paul Eggert <egg...@cs.ucla.edu>
+
+ gnupload: mention GPG_TTY
+ * build-aux/gnupload (usage): Mention GPG_TTY and gpg-agent.
+
2024-12-08 Bruno Haible <br...@clisp.org>
Document the new approach for gnulib localization.
diff --git a/build-aux/gnupload b/build-aux/gnupload
index e87303657b..4511e7d337 100755
--- a/build-aux/gnupload
+++ b/build-aux/gnupload
@@ -1,7 +1,7 @@
#!/bin/sh
# Sign files and upload them.
-scriptversion=2024-07-04.10; # UTC
+scriptversion=2024-12-09.08; # UTC
# Copyright (C) 2004-2024 Free Software Foundation, Inc.
#
@@ -101,6 +101,9 @@ in the current working directory, its contents are prepended to the
actual command line options. Use this to keep your defaults. Comments
(#) and empty lines in $conffile are allowed.
+You may need to set GPG_TTY=\$(tty) in your environment. See the
+gpg-agent man page.
+
<https://www.gnu.org/prep/maintain/html_node/Automated-FTP-Uploads.html>
gives some further background.
--
2.47.0