summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1e36c55b438fc52c1cc153c1b045c8220fa2921b (plain)
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
lint:
	cargo clippy

build:
	cargo build --release

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