[rs-commit] r122 - /dev/Makefile
rs-commit at redwax.eu
rs-commit at redwax.eu
Thu Oct 17 13:16:35 CEST 2024
Author: minfrin at redwax.eu
Date: Thu Oct 17 13:16:34 2024
New Revision: 122
Log:
Add ability to hash to the makefile.
Modified:
dev/Makefile
Modified: dev/Makefile
==============================================================================
--- dev/Makefile (original)
+++ dev/Makefile Thu Oct 17 13:16:34 2024
@@ -29,8 +29,13 @@
# test -s "$?" && gpg2 --armor --verify $? || true
-sign: sign-tar.gz sign-tar.bz2
+sign: sign-tar.gz sign-tar.bz2 sign-zip
sign-%:
find . -name '*.$*' -exec bash -c "gpg2 ${GPG2FLAGS} --armor --output - --detach-sign {} >> {}.asc" \;
+hash: hash-tar.gz hash-tar.bz2 hash-zip
+
+hash-%:
+ find * -name '*.$*' -exec bash -c "(command -v sha256sum > /dev/null && sha256sum --tag {} ) || (command -v gsha256sum > /dev/null && gsha256sum --tag {} ) || (command -v shasum > /dev/null && shasum -a 256 --tag {} ) > {}.sha256" \;
+
More information about the rs-commit
mailing list