forked from dandavison/delta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (20 loc) · 1.1 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
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-)"
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 -) && \
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