Merge pull request #7277 from t2sa/feat/shasum

feat(checksum): Generate shasum/sha256sum -c compatible sha256 file
pull/7546/head
Matthew Fisher 5 years ago committed by GitHub
commit 51cd7a4362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save