forked from public/airgap
allow multiple detached signatures named by fingerprint
This commit is contained in:
parent
663fe8f750
commit
375bda1a39
7
Makefile
7
Makefile
|
@ -94,8 +94,15 @@ verify:
|
||||||
|
|
||||||
.PHONY: sign
|
.PHONY: sign
|
||||||
sign: $(RELEASE_DIR)/*.rom $(RELEASE_DIR)/*.iso
|
sign: $(RELEASE_DIR)/*.rom $(RELEASE_DIR)/*.iso
|
||||||
|
set -e; \
|
||||||
for file in $^; do \
|
for file in $^; do \
|
||||||
gpg --armor --detach-sig "$${file}"; \
|
gpg --armor --detach-sig "$${file}"; \
|
||||||
|
fingerprint=$$(\
|
||||||
|
gpg --list-packets $${file}.asc \
|
||||||
|
| grep "issuer key ID" \
|
||||||
|
| sed 's/.*\([A-Z0-9]\{16\}\).*/\1/g' \
|
||||||
|
); \
|
||||||
|
mv $${file}.asc $${file}.$${fingerprint}.asc; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue