[rt-commit] r28 - /dev/Makefile

rt-commit at redwax.eu rt-commit at redwax.eu
Tue Jul 23 10:46:05 CEST 2024


Author: minfrin at redwax.eu
Date: Tue Jul 23 10:46:03 2024
New Revision: 28

Log:
Add verify-local target to compare against our keys file.

Modified:
    dev/Makefile

Modified: dev/Makefile
==============================================================================
--- dev/Makefile	(original)
+++ dev/Makefile	Tue Jul 23 10:46:03 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 rt-commit mailing list