Is there any reason for gnupload -n to ask for the gpg password? When testing, it seems rather more convenient not to be asked. (If I actually commit this I'll reindent in the obvious way.)
k --- a/build-aux/gnupload +++ b/build-aux/gnupload @@ -243,11 +249,13 @@ unset passphrase # listings with their arguments...). # Remember this script runs with 'set -e', so if echo is not built-in # it will exit now. +if $dry_run; then :; else PATH=/empty echo -n "Enter GPG passphrase: " stty -echo read -r passphrase stty echo echo +fi if test $# -ne 0; then for file