ia64/xen-unstable

changeset 5822:6891f0c11683

Trivial fixes for numeric arg to head/tail.
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 15 19:34:10 2005 +0000 (2005-07-15)
parents a83ac0806d6b
children d75a502b45eb
files xen/Makefile
line diff
     1.1 --- a/xen/Makefile	Fri Jul 15 06:39:50 2005 -0700
     1.2 +++ b/xen/Makefile	Fri Jul 15 19:34:10 2005 +0000
     1.3 @@ -96,11 +96,11 @@ 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 -1)/g' \
     1.8 +	    -e 's/@@compiler@@/$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)/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' \
    1.12 -	    -e 's!@@changeset@@!$(shell (hg parents | awk -F: '/^changeset/{CS=$$3};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || (head -6 ChangeLog | awk -F: '/^changeset/{CS=$$3};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || echo information unavailable)!g' \
    1.13 +	    -e 's!@@changeset@@!$(shell (hg parents | awk -F: '/^changeset/{CS=$$3};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || (head -n 6 ChangeLog | awk -F: '/^changeset/{CS=$$3};{FS="date:[ ]+"}/^date/{D=$$2}; END {print D, CS}') 2>/dev/null || echo information unavailable)!g' \
    1.14  	    < include/xen/compile.h.in > $@.new
    1.15  	@cat include/xen/banner.h >> $@.new
    1.16  	@mv -f $@.new $@