forked from dandavison/delta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (31 loc) · 1.51 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
lint:
cargo clippy
build:
@printf "____________________________________________________________________________________\n"
cargo build
test:
cargo test
bash -c "diff -u <(git log -p | cut -c 2-) \
<(git log -p | delta --width variable \
--tabs 0 \
--commit-style plain \
--file-style plain \
--hunk-style plain \
| ansifilter | cut -c 2-)"
release:
cargo publish
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
hash:
@version=$$(grep version Cargo.toml | head -n1 | sed -E 's,.*version = "([^"]+)",\1,') && \
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 -)
chronologer:
chronologer performance/chronologer.yaml