Add release Make target

This commit is contained in:
Dan Davison 2019-11-25 16:41:04 -05:00
parent 98e82439c8
commit ff08dbb062

View File

@ -15,6 +15,9 @@ test:
--hunk-style plain \
| ansifilter | cut -c 2-)"
release:
cargo publish
hash:
@version=$$(grep version Cargo.toml | head -n1 | sed -E 's,.*version = "([^"]+)",\1,') && \
printf "delta-$$version-x86_64-apple-darwin.tar.gz %s\n" $$(curl -sL https://github.com/dandavison/delta/releases/download/$$version/delta-$$version-x86_64-apple-darwin.tar.gz | sha256sum -) && \