direct-io.hg

changeset 5680:20008f3ac9f5

Improve changeset identification to work from src tar ball too.
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@freefall.cl.cam.ac.uk
date Wed Jul 06 15:21:25 2005 +0000 (2005-07-06)
parents 9a7d86b8147d
children 4b30296d6f5d
files xen/Makefile
line diff
     1.1 --- a/xen/Makefile	Wed Jul 06 14:23:39 2005 +0000
     1.2 +++ b/xen/Makefile	Wed Jul 06 15:21:25 2005 +0000
     1.3 @@ -100,7 +100,7 @@ include/xen/compile.h: include/xen/compi
     1.4  	    -e 's/@@version@@/$(XEN_VERSION)/g' \
     1.5  	    -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
     1.6  	    -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
     1.7 -	    -e 's!@@changeset@@!$(shell (hg tip | awk '/changeset/{CS=$$2};{FS="date:[ ]+"}/date/{D=$$2}; END {print D, CS}') 2>/dev/null || echo information unavailable)!g' \
     1.8 +	    -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.9  	    < include/xen/compile.h.in > $@.new
    1.10  	@cat include/xen/banner.h >> $@.new
    1.11  	@mv -f $@.new $@