aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-01-26 15:01:06 +0000
committerWerner Koch <[email protected]>2024-01-26 15:01:06 +0000
commit97b283765353d885ab21e160d5675c6d7eacc46a (patch)
tree913bbad65a7e781f3cbfea2606f3c06431e5f162 /Makefile.am
parentdirmngr: For CRL issuer verification trust the system's root CA. (diff)
downloadgnupg-97b283765353d885ab21e160d5675c6d7eacc46a.tar.gz
gnupg-97b283765353d885ab21e160d5675c6d7eacc46a.zip
speedo: Improve parsing of the ~./.gnupg-autogen.rc
-- We now allow spaces around the variable name and the value.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 67ee98e20..1b6933484 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -247,8 +247,8 @@ release:
mkopt=""; \
if [ -n "$$CUSTOM_SWDB" ]; then \
mkopt="CUSTOM_SWB=1"; \
- x=$$(grep '^OVERRIDE_TARBALLS=' \
- $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
+ x=$$(grep '^[[:blank:]]*OVERRIDE_TARBALLS[[:blank:]]*=' \
+ $$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs);\
if [ -f "$$x/swdb.lst" ]; then \
echo "/* Copying swdb.lst from the overrides directory */"; \
cp "$$x/swdb.lst" . ; \
@@ -275,13 +275,15 @@ release:
sign-release:
+(set -e; \
test $$(pwd | sed 's,.*/,,') = dist || cd dist; \
- x=$$(grep '^RELEASE_ARCHIVE=' $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
+ x=$$(grep '^[[:blank:]]*RELEASE_ARCHIVE[[:blank:]]*=' \
+ $$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs);\
if [ -z "$$x" ]; then \
echo "error: RELEASE_ARCHIVE missing in ~/.gnupg-autogen.rc">&2; \
exit 2;\
fi;\
myarchive="$$x/$(RELEASE_ARCHIVE_SUFFIX)";\
- x=$$(grep '^RELEASE_SIGNKEY=' $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
+ x=$$(grep '^[[:blank:]]*RELEASE_SIGNKEY[[:blank:]]*=' \
+ $$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs);\
if [ -z "$$x" ]; then \
echo "error: RELEASE_SIGNKEY missing in ~/.gnupg-autogen.rc">&2; \
exit 2;\