Skip to content

Commit b082897

Browse files
committed
Replace getrev.sh with a one-liner (thanks @bellthoven)
1 parent a67e445 commit b082897

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ docs: compile
9898
mkdir -p ebin
9999
rm -rf docs
100100
cp -R -f lib/*/ebin/*.beam ./ebin
101-
bin/elixir ../exdoc/bin/exdoc "Elixir" "$(VERSION)" -m Kernel -u "https://github.com/elixir-lang/elixir" --source-ref `sh getrev.sh`
101+
bin/elixir ../exdoc/bin/exdoc "Elixir" "$(VERSION)" -m Kernel -u "https://github.com/elixir-lang/elixir" --source-ref "$(shell head="$$(git rev-parse HEAD)" tag="$$(git tag --points-at $$head | tail -1)" ; echo "$${tag:-$$head}\c")"
102102
rm -rf ebin
103103

104104
release_zip: compile

getrev.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)