be explicit about hash length
different git versions have different defaults
This commit is contained in:
parent
a4d38d65a6
commit
f4649b515f
4
Makefile
4
Makefile
@ -23,7 +23,7 @@ pyenv:
|
|||||||
.PHONY: buildhash
|
.PHONY: buildhash
|
||||||
buildhash:
|
buildhash:
|
||||||
oldhash=$$(test -f meta/buildhash && cat meta/buildhash || true); \
|
oldhash=$$(test -f meta/buildhash && cat meta/buildhash || true); \
|
||||||
newhash=$$(git rev-parse --short HEAD); \
|
newhash=$$(git rev-parse --short=8 HEAD); \
|
||||||
if [ "$$oldhash" != "$$newhash" ]; then \
|
if [ "$$oldhash" != "$$newhash" ]; then \
|
||||||
echo $$newhash > meta/buildhash; \
|
echo $$newhash > meta/buildhash; \
|
||||||
fi
|
fi
|
||||||
@ -88,4 +88,4 @@ fix:
|
|||||||
add-buildhash:
|
add-buildhash:
|
||||||
@ver=$$(cat meta/version); \
|
@ver=$$(cat meta/version); \
|
||||||
hash=$$(cat meta/buildhash); \
|
hash=$$(cat meta/buildhash); \
|
||||||
rename "s/-$${ver}-/-$${ver}+$${hash}-/" dist/*-$$ver-*
|
rename "s/-$${ver}-/-$${ver}+$${hash}-/" dist/*-$$ver-*
|
||||||
|
Loading…
Reference in New Issue
Block a user