hgbook

diff en/Makefile @ 29:6e988159394b

Add revision ID to output.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed Jul 12 00:33:27 2006 -0700 (2006-07-12)
parents 1bc6c1f0192a
children 51d94bd2804c
line diff
     1.1 --- a/en/Makefile	Tue Jul 11 23:48:25 2006 -0700
     1.2 +++ b/en/Makefile	Wed Jul 12 00:33:27 2006 -0700
     1.3 @@ -1,6 +1,6 @@
     1.4  # This makefile requires GNU make.
     1.5  
     1.6 -hg_id := $(shell hg parents --template '{node|short}' | head -1)
     1.7 +hg_id := $(shell hg parents --template '{node|short}\n' | head -1)
     1.8  
     1.9  sources := \
    1.10  	00book.tex \
    1.11 @@ -107,7 +107,7 @@
    1.12  	cd examples && ./run-example
    1.13  
    1.14  build_id.tex: $(wildcard ../.hg/00changelog.[id])
    1.15 -	echo $(hg_id) > build_id.tex
    1.16 +	echo -n $(hg_id) > build_id.tex
    1.17  
    1.18  clean:
    1.19  	rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \