mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
speedo: Improve parsing of the ~./.gnupg-autogen.rc
-- We now allow spaces around the variable name and the value.
This commit is contained in:
parent
4dc09bc5e7
commit
97b2837653
10
Makefile.am
10
Makefile.am
@ -247,8 +247,8 @@ release:
|
|||||||
mkopt=""; \
|
mkopt=""; \
|
||||||
if [ -n "$$CUSTOM_SWDB" ]; then \
|
if [ -n "$$CUSTOM_SWDB" ]; then \
|
||||||
mkopt="CUSTOM_SWB=1"; \
|
mkopt="CUSTOM_SWB=1"; \
|
||||||
x=$$(grep '^OVERRIDE_TARBALLS=' \
|
x=$$(grep '^[[:blank:]]*OVERRIDE_TARBALLS[[:blank:]]*=' \
|
||||||
$$HOME/.gnupg-autogen.rc|cut -d= -f2);\
|
$$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs);\
|
||||||
if [ -f "$$x/swdb.lst" ]; then \
|
if [ -f "$$x/swdb.lst" ]; then \
|
||||||
echo "/* Copying swdb.lst from the overrides directory */"; \
|
echo "/* Copying swdb.lst from the overrides directory */"; \
|
||||||
cp "$$x/swdb.lst" . ; \
|
cp "$$x/swdb.lst" . ; \
|
||||||
@ -275,13 +275,15 @@ release:
|
|||||||
sign-release:
|
sign-release:
|
||||||
+(set -e; \
|
+(set -e; \
|
||||||
test $$(pwd | sed 's,.*/,,') = dist || cd dist; \
|
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 \
|
if [ -z "$$x" ]; then \
|
||||||
echo "error: RELEASE_ARCHIVE missing in ~/.gnupg-autogen.rc">&2; \
|
echo "error: RELEASE_ARCHIVE missing in ~/.gnupg-autogen.rc">&2; \
|
||||||
exit 2;\
|
exit 2;\
|
||||||
fi;\
|
fi;\
|
||||||
myarchive="$$x/$(RELEASE_ARCHIVE_SUFFIX)";\
|
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 \
|
if [ -z "$$x" ]; then \
|
||||||
echo "error: RELEASE_SIGNKEY missing in ~/.gnupg-autogen.rc">&2; \
|
echo "error: RELEASE_SIGNKEY missing in ~/.gnupg-autogen.rc">&2; \
|
||||||
exit 2;\
|
exit 2;\
|
||||||
|
@ -238,7 +238,7 @@ PATCHELF := $(shell patchelf --version 2>/dev/null >/dev/null || echo "echo plea
|
|||||||
|
|
||||||
# Read signing information from ~/.gnupg-autogen.rc
|
# Read signing information from ~/.gnupg-autogen.rc
|
||||||
define READ_AUTOGEN_template
|
define READ_AUTOGEN_template
|
||||||
$(1) = $$(shell grep '^$(1)=' $$$$HOME/.gnupg-autogen.rc|cut -d= -f2)
|
$(1) = $$(shell grep '^[[:blank:]]*$(1)[[:blank:]]*=' $$$$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs)
|
||||||
endef
|
endef
|
||||||
$(eval $(call READ_AUTOGEN_template,AUTHENTICODE_SIGNHOST))
|
$(eval $(call READ_AUTOGEN_template,AUTHENTICODE_SIGNHOST))
|
||||||
$(eval $(call READ_AUTOGEN_template,AUTHENTICODE_TOOL))
|
$(eval $(call READ_AUTOGEN_template,AUTHENTICODE_TOOL))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user