summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-04-26 16:30:33 +0200
committerWerner Koch <wk@gnupg.org>2021-04-28 18:21:56 +0200
commit178e4eb6555e3dffcae3eda1b45c1dbf1d87c103 (patch)
treeaa4ea50621f6b819d47750dc4921746b1ed44097 /Makefile.am
parentscd: Fix unblock PIN by a Reset Code with KDF. (diff)
downloadgnupg2-178e4eb6555e3dffcae3eda1b45c1dbf1d87c103.tar.xz
gnupg2-178e4eb6555e3dffcae3eda1b45c1dbf1d87c103.zip
build: Allow running sign-release target from the dist dir.
-- This is a kludge to avoid a new configure run only to then cd down do dist. Just cd to dist and run make sign-release.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 06a9a6638..145e5b01b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -213,7 +213,7 @@ release:
sign-release:
+(set -e; \
- cd dist; \
+ test $$(pwd | sed 's,.*/,,') = dist || cd dist; \
x=$$(grep '^RELEASE_ARCHIVE=' $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
if [ -z "$$x" ]; then \
echo "error: RELEASE_ARCHIVE missing in ~/.gnupg-autogen.rc">&2; \