direct-io.hg
changeset 8849:c6c739bf254d
Fix Makefile problem when "gcc -v" includes a '/'
and convert | to / to avoid the same problem with '|'.
Original patch from Jos Vos, modified to prevent a '|' problem.
From: Jos Vos <jos@xos.nl>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
and convert | to / to avoid the same problem with '|'.
Original patch from Jos Vos, modified to prevent a '|' problem.
From: Jos Vos <jos@xos.nl>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author | vhanquez@kneesa.uk.xensource.com |
---|---|
date | Thu Feb 16 14:26:02 2006 +0000 (2006-02-16) |
parents | fcbc33a437ec |
children | b32cad914390 |
files | xen/Makefile |
line diff
1.1 --- a/xen/Makefile Thu Feb 16 14:10:01 2006 +0000 1.2 +++ b/xen/Makefile Thu Feb 16 14:26:02 2006 +0000 1.3 @@ -91,7 +91,7 @@ include/xen/compile.h: include/xen/compi 1.4 -e 's/@@whoami@@/$(shell whoami)/g' \ 1.5 -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \ 1.6 -e 's/@@hostname@@/$(shell hostname)/g' \ 1.7 - -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)/g' \ 1.8 + -e 's|@@compiler@@|$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1 | sed -e "s;|;/;")|g' \ 1.9 -e 's/@@version@@/$(XEN_VERSION)/g' \ 1.10 -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ 1.11 -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \