Create a single shasums.txt

Signed-off-by: Thilak Somasundaram <t2same@gmail.com>
This commit is contained in:
Thilak Somasundaram
2020-02-04 22:24:57 -08:00
parent bf5419742d
commit a9171fe2ca

View File

@@ -163,8 +163,9 @@ sign:
.PHONY: checksum
checksum:
if [ -f "_dist/shasums.txt" ]; then >_dist/shasums.txt; fi
for f in _dist/*.{gz,zip} ; do \
shasum -a 256 "$${f}" | sed 's/_dist\///' | tee "$${f}.sha256sum" | awk '{print $$1}' > "$${f}.sha256" ; \
shasum -a 256 "$${f}" | sed 's/_dist\///' | tee -a "_dist/shasums.txt" | awk '{print $$1}' > "$${f}.sha256" ; \
done
# ------------------------------------------------------------------------------