ia64/xen-unstable
changeset 11863:b99d11877ba1
Use new 'hg parents --template' support instead of awk scraping.
Also avoid use of non-portable 'whoami'. Use the USER env var instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
Also avoid use of non-portable 'whoami'. Use the USER env var instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kfraser@localhost.localdomain |
---|---|
date | Wed Oct 18 11:37:45 2006 +0100 (2006-10-18) |
parents | 317e71a06828 |
children | 5525b18b7224 |
files | xen/Makefile |
line diff
1.1 --- a/xen/Makefile Tue Oct 17 19:04:46 2006 +0100 1.2 +++ b/xen/Makefile Wed Oct 18 11:37:45 2006 +0100 1.3 @@ -93,14 +93,14 @@ include/xen/acm_policy.h: 1.4 include/xen/compile.h: include/xen/compile.h.in 1.5 @sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \ 1.6 -e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \ 1.7 - -e 's/@@whoami@@/$(shell whoami)/g' \ 1.8 + -e 's/@@whoami@@/$(USER)/g' \ 1.9 -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \ 1.10 -e 's/@@hostname@@/$(shell hostname)/g' \ 1.11 -e 's|@@compiler@@|$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1 | sed -e "s;|;/;")|g' \ 1.12 -e 's/@@version@@/$(XEN_VERSION)/g' \ 1.13 -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ 1.14 -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ 1.15 - -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' \ 1.16 + -e 's!@@changeset@@!$(shell ((hg parents --template "{date|date} {rev}:{node|short}" >/dev/null && hg parents --template "{date|date} {rev}:{node|short}") || echo "unavailable") 2>/dev/null)!g' \ 1.17 < include/xen/compile.h.in > $@.new 1.18 tools/figlet/figlet -d tools/figlet Xen $(XEN_FULLVERSION) >> $@.new 1.19 @mv -f $@.new $@