Mercurial > hgbook
diff en/Makefile @ 29:6e988159394b
Add revision ID to output.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 12 Jul 2006 00:33:27 -0700 |
parents | 1bc6c1f0192a |
children | 51d94bd2804c |
line wrap: on
line diff
--- a/en/Makefile Wed Jul 12 00:14:52 2006 -0700 +++ b/en/Makefile Wed Jul 12 00:33:27 2006 -0700 @@ -1,6 +1,6 @@ # This makefile requires GNU make. -hg_id := $(shell hg parents --template '{node|short}' | head -1) +hg_id := $(shell hg parents --template '{node|short}\n' | head -1) sources := \ 00book.tex \ @@ -107,7 +107,7 @@ cd examples && ./run-example build_id.tex: $(wildcard ../.hg/00changelog.[id]) - echo $(hg_id) > build_id.tex + echo -n $(hg_id) > build_id.tex clean: rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \