allow multiple detached signatures named by fingerprint

This commit is contained in:
Lance Vick 2020-07-25 17:53:15 -07:00
parent 663fe8f750
commit 375bda1a39
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 7 additions and 0 deletions

View File

@ -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