mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
Depot: support for GPG command line override
Allow the gpg utility to be overridden on the command line. For example, './tool/depot/publish GPG="ssh 10.0.1.3 gpg" ...' would invoke a remote gpg over SSH. Fix #2981
This commit is contained in:
parent
1f5a083129
commit
b51ee34b11
@ -19,3 +19,6 @@ missing_pubkey_files:
|
||||
@echo "Error: missing public-key files:";\
|
||||
for i in $(MISSING_PUBKEY_FILES); do echo " $$i"; done; false
|
||||
|
||||
# Allow the gpg command to be overridden on the command line
|
||||
GPG ?= gpg
|
||||
|
||||
|
@ -72,8 +72,8 @@ TARGETS := $(addsuffix .tar.xz.sig,$(addprefix $(PUBLIC_DIR)/,$(ARCHIVES)))
|
||||
|
||||
$(PUBLIC_DIR)/%.tar.xz.sig : $(PUBLIC_DIR)/%.tar.xz
|
||||
$(VERBOSE)rm -f $@;
|
||||
$(VERBOSE)gpg --detach-sign --digest-algo SHA256 --no-tty --use-agent \
|
||||
--local-user $(call pubkey_id,$*) $<
|
||||
$(VERBOSE)$(GPG) --detach-sign --digest-algo SHA256 --no-tty --use-agent \
|
||||
--local-user $(call pubkey_id,$*) - < $< > $@
|
||||
|
||||
.PRECIOUS: $(TARGETS:.tar.xz.sig=.tar.xz)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user