From 54293d727b08d84876838a231f1ffe56e8a47eb5 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 15 Dec 2015 09:53:17 +0100 Subject: [PATCH] Use the makefile to compute the checksums Signed-off-by: David Gageot --- docs/RELEASE.md | 8 +++----- mk/release.mk | 8 ++++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/docs/RELEASE.md b/docs/RELEASE.md index fcf2761127..886f3a1297 100644 --- a/docs/RELEASE.md +++ b/docs/RELEASE.md @@ -28,11 +28,9 @@ Machine core maintainers who might find themselves performing a release. to upload the released binaries. At the time of writing the `release` target in the `Makefile` does not work correctly for this step but it should eventually be split into a separate target and fixed. -5. **Generate Checksums** -- [This - script](https://gist.github.com/nathanleclaire/c506ad3736d33bd42c2f) will spit - out the checksums for the `.zip` files, which you should copy and paste into the - end of the release notes for anyone who wants to verify the checksums of the - downloaded artifacts. +5. **Generate Checksums** -- `make release-checksum` will spit out the checksums + for the binaries, which you should copy and paste into the end of the release + notes for anyone who wants to verify the checksums of the downloaded artifacts. 6. **Add Installation Instructions** -- At the top of the release notes, copy and paste the installation instructions from the previous release, taking care to update the referenced download URLs to the new version. diff --git a/mk/release.mk b/mk/release.mk index 1c1d272cdb..f08167667e 100644 --- a/mk/release.mk +++ b/mk/release.mk @@ -1,8 +1,8 @@ release-checksum: - $(foreach MACHINE_FILE, $(wildcard $(PREFIX)/bin/*.zip), \ - $(shell openssl dgst -sha256 < "$(MACHINE_FILE)" > "$(MACHINE_FILE).sha256" && \ - openssl dgst -md5 < "$(MACHINE_FILE)" > "$(MACHINE_FILE).md5" \ - )) + $(foreach MACHINE_FILE, $(wildcard $(PREFIX)/bin/*), \ + $(shell printf "%-50s %-50s\n" "sha256 $(shell basename $(MACHINE_FILE))" "$(shell openssl dgst -sha256 < $(MACHINE_FILE))" > /dev/stderr) \ + $(shell printf "%-50s %-50s\n" "md5 $(shell basename $(MACHINE_FILE))" "$(shell openssl dgst -md5 < $(MACHINE_FILE))" > /dev/stderr) \ + ) @: release: clean dco fmt test test-long build-x release-checksum