Alexandre Julliard : libwine: Only use the last line of the git version description.
Alexandre Julliard
julliard at winehq.org
Mon Apr 7 14:46:48 CDT 2008
Module: wine
Branch: master
Commit: 85241fbe5bdd76aaeff8dc74b41a0a3fb2b2c949
URL: http://source.winehq.org/git/wine.git/?a=commit;h=85241fbe5bdd76aaeff8dc74b41a0a3fb2b2c949
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 7 17:38:27 2008 +0200
libwine: Only use the last line of the git version description.
---
libs/wine/Makefile.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in
index ea74396..8b614d7 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- at 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- at 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 $@
More information about the wine-cvs
mailing list