loader: Fix git-describe invocation to work with old git versions.

This commit is contained in:
Alexandre Julliard 2007-01-15 13:02:00 +01:00
parent 25571d8789
commit d62b5c6cd9
1 changed files with 1 additions and 1 deletions

View File

@ -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 $@