From 23f779ee0ef8383540e0987bb8dac80db646cba1 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 30 Jan 2021 14:21:30 +0100 Subject: [PATCH] Add .sha256 checksum to release target Signed-off-by: Joachim Wiberg --- Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 792c011..22dcf89 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,8 +37,9 @@ endif # Target to run when building a release # release: distcheck - @for file in $(DIST_ARCHIVES); do \ - md5sum $$file > ../$$file.md5; \ + @for file in $(DIST_ARCHIVES); do \ + md5sum $$file > ../$$file.md5; \ + sha256sum $$file > ../$$file.sha256; \ done @mv $(DIST_ARCHIVES) ../ @echo @@ -47,6 +48,7 @@ release: distcheck @for file in $(DIST_ARCHIVES); do \ printf "$$file \tDistribution tarball\n"; \ printf "$$file.md5\t"; cat ../$$file.md5 | cut -f1 -d' '; \ + printf "$$file.sha256\t"; cat ../$$file.sha256 | cut -f1 -d' '; \ done # Workaround for systemd unit file duing distcheck