libwine: Only use the last line of the git version description.
This commit is contained in:
parent
334e88bc02
commit
85241fbe5b
|
@ -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 $@
|
||||
|
|
Loading…
Reference in New Issue