aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-03-14 08:34:48 +0100
committerWerner Koch <[email protected]>2022-03-28 08:29:43 +0200
commitec656616bbbb5db87d3cdf4f4ea695217935d843 (patch)
treebb2477843bd4f35e2466f54bee1cc4a8f58b3f04
parent1517a31ea476b76f67289d07e2c2821aa4ef83ef (diff)
downloadlibgcrypt-ec656616bbbb5db87d3cdf4f4ea695217935d843.tar.gz
libgcrypt-ec656616bbbb5db87d3cdf4f4ea695217935d843.tar.bz2
libgcrypt-ec656616bbbb5db87d3cdf4f4ea695217935d843.zip
build: Improve sign-release traget
* Makefile.am (sign-release): Allow running in the dist dir.
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3a6a5e9a..0e9754e1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -124,7 +124,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; \