From 85241fbe5bdd76aaeff8dc74b41a0a3fb2b2c949 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 7 Apr 2008 17:38:27 +0200 Subject: [PATCH] libwine: Only use the last line of the git version description. --- libs/wine/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index ea74396fac3..8b614d78be2 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -176,7 +176,7 @@ uninstall:: libwine.so.$(SOVERSION) libwine.dylib libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib version-stamp: dummy - (GIT_DIR=$(TOPSRCDIR)/.git git describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -e 's/\(.*\)/const char wine_build[] = "\1";/' >$@ || ($(RM) $@ && exit 1) + (GIT_DIR=$(TOPSRCDIR)/.git git describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -n -e '$$s/\(.*\)/const char wine_build[] = "\1";/p' >$@ || ($(RM) $@ && exit 1) version.c: version-stamp @cmp -s version-stamp $@ || cp version-stamp $@