Create a single shasums.txt

Signed-off-by: Thilak Somasundaram <t2same@gmail.com>
This commit is contained in:
Thilak Somasundaram 2020-02-04 22:34:10 -08:00
parent a9171fe2ca
commit 691eff46dc

View file

@ -163,7 +163,7 @@ sign:
.PHONY: checksum
checksum:
if [ -f "_dist/shasums.txt" ]; then >_dist/shasums.txt; fi
@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 -a "_dist/shasums.txt" | awk '{print $$1}' > "$${f}.sha256" ; \
done