[rs-commit] r8 - /dev/Makefile

rs-commit at redwax.eu rs-commit at redwax.eu
Sun Dec 8 23:05:04 CET 2019


Author: minfrin at redwax.eu
Date: Sun Dec  8 23:04:59 2019
New Revision: 8

Log:
Add a Makefile to give us "make verify" and "make sign".

Added:
    dev/Makefile

Added: dev/Makefile
==============================================================================
--- dev/Makefile	(added)
+++ dev/Makefile	Sun Dec  8 23:04:59 2019
@@ -0,0 +1,25 @@
+#
+# Handle signing and verifying of release artefacts.
+#
+# make
+#  - equivalent of make verify
+#
+# make verify
+#  - verify all signatures in the directory
+#
+# make sign
+#  - sign all release artefacts
+#
+
+all: verify
+
+verify:
+	find . -name "*.asc" -exec bash -c "basename {}; gpg2 --armor --verify '{}'" \;
+
+#	test -s "$?" && gpg2 --armor --verify $? || true
+
+sign: sign-tar.gz sign-tar.bz2
+
+sign-%:
+	find . -name *.$* -exec bash -c "gpg2 --armor --output - --detach-sign {} >> {}.asc" \;
+



More information about the rs-commit mailing list