|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] portability fixes for xen/Makefile
# HG changeset patch
# User john.levon@xxxxxxx
# Date 1161130204 25200
# Node ID 32d006ce69511c08a32c4fb0b0f979bc2d92cce7
# Parent e79ef17cfbd43f1a965855defba2efa42931a84d
Portability fixes for xen/Makefile.
Signed-off-by: John Levon <john.levon@xxxxxxx>
diff --git a/xen/Makefile b/xen/Makefile
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -93,14 +93,14 @@ include/xen/compile.h: include/xen/compi
include/xen/compile.h: include/xen/compile.h.in
@sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \
-e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \
- -e 's/@@whoami@@/$(shell whoami)/g' \
+ -e 's/@@whoami@@/$(USER)/g' \
-e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] &&
/bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo
[unknown]))/g' \
-e 's/@@hostname@@/$(shell hostname)/g' \
-e 's|@@compiler@@|$(shell $(CC) $(CFLAGS) -v 2>&1 | $(TAIL) -n 1 |
sed -e "s;|;/;")|g' \
-e 's/@@version@@/$(XEN_VERSION)/g' \
-e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
-e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
- -e 's!@@changeset@@!$(shell ((hg parents || head -n 7 ../ChangeLog
|| echo date: unavailable) | awk '{FS="changeset:[
]+"}/^changeset/{CS=$$2};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}')
2>/dev/null)!g' \
+ -e 's!@@changeset@@!$(shell ((hg parents || head -n 7 ../ChangeLog
|| echo date: unavailable) | awk 'BEGIN {FS=":[ ]+";} /^changeset/{CS=$$2;}
/^date/{D=$$2;} END {print D, CS}') 2>/dev/null)!g' \
< include/xen/compile.h.in > $@.new
tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) >> $@.new
@mv -f $@.new $@
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] portability fixes for xen/Makefile,
John Levon <=
|
|
|
|
|