summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-03-03 18:33:56 -0600
committerDan Davison <dandavison7@gmail.com>2020-03-03 18:33:56 -0600
commitf4e4af54c71992f4ed9f89a217165638ee17c2d0 (patch)
tree788e37e037d2ca6184aa4e846394aee80020cec6 /Makefile
parent1837aa8eaad50d716fa6f25b66c103fc97c28d05 (diff)
Add release instructions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 079e06b0..3bab6b55 100644
--- a/Makefile
+++ b/Makefile
@@ -15,19 +15,13 @@ test:
| ansifilter | cut -c 2-)"
release:
- cargo publish
+ @make -f release.Makefile release
-brew:
- cd $$(brew --repo homebrew/homebrew-core) && \
- brew uninstall --force git-delta && \
- brew install --build-from-source git-delta && \
- brew test git-delta && \
- brew uninstall --force git-delta && \
- brew install git-delta && \
- brew audit --strict git-delta
+version:
+ @grep version Cargo.toml | head -n1 | sed -E 's,.*version = "([^"]+)",\1,'
hash:
- @version=$$(grep version Cargo.toml | head -n1 | sed -E 's,.*version = "([^"]+)",\1,') && \
+ @version=$$(make version) && \
printf "$$version-tar.gz %s\n" $$(curl -sL https://github.com/dandavison/delta/archive/$$version.tar.gz | sha256sum -) && \
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 -) && \
printf "delta-$$version-x86_64-unknown-linux-musl.tar.gz %s\n" $$(curl -sL https://github.com/dandavison/delta/releases/download/$$version/delta-$$version-x86_64-unknown-linux-musl.tar.gz | sha256sum -)