Use the makefile to compute the checksums

Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
David Gageot 2015-12-15 09:53:17 +01:00
parent ff5dc0c644
commit 54293d727b
2 changed files with 7 additions and 9 deletions

View File

@ -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 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 the `Makefile` does not work correctly for this step but it should eventually be
split into a separate target and fixed. split into a separate target and fixed.
5. **Generate Checksums** -- [This 5. **Generate Checksums** -- `make release-checksum` will spit out the checksums
script](https://gist.github.com/nathanleclaire/c506ad3736d33bd42c2f) will spit for the binaries, which you should copy and paste into the end of the release
out the checksums for the `.zip` files, which you should copy and paste into the notes for anyone who wants to verify the checksums of the downloaded artifacts.
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 6. **Add Installation Instructions** -- At the top of the release notes, copy and
paste the installation instructions from the previous release, taking care to paste the installation instructions from the previous release, taking care to
update the referenced download URLs to the new version. update the referenced download URLs to the new version.

View File

@ -1,8 +1,8 @@
release-checksum: release-checksum:
$(foreach MACHINE_FILE, $(wildcard $(PREFIX)/bin/*.zip), \ $(foreach MACHINE_FILE, $(wildcard $(PREFIX)/bin/*), \
$(shell openssl dgst -sha256 < "$(MACHINE_FILE)" > "$(MACHINE_FILE).sha256" && \ $(shell printf "%-50s %-50s\n" "sha256 $(shell basename $(MACHINE_FILE))" "$(shell openssl dgst -sha256 < $(MACHINE_FILE))" > /dev/stderr) \
openssl dgst -md5 < "$(MACHINE_FILE)" > "$(MACHINE_FILE).md5" \ $(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 release: clean dco fmt test test-long build-x release-checksum