loader: Fix git-describe invocation to work with old git versions.
This commit is contained in:
parent
25571d8789
commit
d62b5c6cd9
|
@ -68,7 +68,7 @@ clean::
|
||||||
$(RM) version.c version-stamp
|
$(RM) version.c version-stamp
|
||||||
|
|
||||||
version-stamp: dummy
|
version-stamp: dummy
|
||||||
(GIT_DIR=$(TOPSRCDIR)/.git git-describe 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -e 's/\(.*\)/const char wine_version[] = "\1";/' >$@ || ($(RM) $@ && exit 1)
|
(GIT_DIR=$(TOPSRCDIR)/.git git-describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -e 's/\(.*\)/const char wine_version[] = "\1";/' >$@ || ($(RM) $@ && exit 1)
|
||||||
|
|
||||||
version.c: version-stamp
|
version.c: version-stamp
|
||||||
@cmp -s version-stamp $@ || cp version-stamp $@
|
@cmp -s version-stamp $@ || cp version-stamp $@
|
||||||
|
|
Loading…
Reference in New Issue