Skip to content
Snippets Groups Projects
Commit e4592926 authored by Lasse Collin's avatar Lasse Collin
Browse files

Build: Fix mydist rule when .git doesn't exist.

parent 6e1326fc
No related branches found
Tags v5.0.5
No related merge requests found
......@@ -79,6 +79,7 @@ dist-hook:
# This works with GNU tar and gives cleaner package than normal 'make dist'.
mydist:
VERSION=$(VERSION); \
if test -d "$(srcdir)/.git" && type git > /dev/null 2>&1; then \
SNAPSHOT=`cd "$(srcdir)" && git describe --abbrev=4 | cut -b2-`; \
test -n "$$SNAPSHOT" && VERSION=$$SNAPSHOT; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment