[rs-commit] r121 - /dev/Makefile
rs-commit at redwax.eu
rs-commit at redwax.eu
Tue Jul 23 10:52:29 CEST 2024
Author: minfrin at redwax.eu
Date: Tue Jul 23 10:52:28 2024
New Revision: 121
Log:
Add verify-local target to compare against local keys file.
Modified:
dev/Makefile
Modified: dev/Makefile
==============================================================================
--- dev/Makefile (original)
+++ dev/Makefile Tue Jul 23 10:52:28 2024
@@ -14,12 +14,18 @@
# GPG2FLAGS='-u uid at redwax.eu' gmake sign
# to force a specific UID to be used for signing.
#
-#
+KEYS=../keys/KEYS
all: verify
verify:
find . -name '*.asc' -exec bash -c "basename {}; gpg2 ${GPG2FLAGS} --armor --verify '{}'" \;
+
+${KEYS}.gpg:${KEYS}
+ gpg2 --no-default-keyring --keyring "${KEYS}.gpg" --import --trust-model always < "${KEYS}"
+
+verify-local: ${KEYS}.gpg
+ find . -name '*.asc' -exec bash -c "basename {}; gpg2 ${GPG2FLAGS} --armor --verify --no-default-keyring --keyring "${KEYS}.gpg" '{}'" \;
# test -s "$?" && gpg2 --armor --verify $? || true
More information about the rs-commit
mailing list