# HG changeset patch # User Bryan O'Sullivan # Date 1152689607 25200 # Node ID 6e988159394b139d6f0910a966c7e19b65a1e976 # Parent 535e87792eb1756ecbe0e0f27cd3038fbdb1e393 Add revision ID to output. diff -r 535e87792eb1 -r 6e988159394b en/00book.tex --- a/en/00book.tex Wed Jul 12 00:14:52 2006 -0700 +++ b/en/00book.tex Wed Jul 12 00:33:27 2006 -0700 @@ -15,10 +15,11 @@ \title{Distributed revision control with Mercurial} \author{Bryan O'Sullivan} -\date{Copyright \copyright\ 2006 Bryan O'Sullivan. This material may - be distributed only subject to the terms and conditions set forth in - version 1.0 of the Open Publication License. Please refer to - Appendix~\ref{cha:opl} for the license text.} +\date{Copyright \copyright\ 2006 Bryan O'Sullivan.\\ + This material may be distributed only subject to the terms and + conditions set forth in version 1.0 of the Open Publication License. + Please refer to Appendix~\ref{cha:opl} for the license text.\\ + This book was prepared from revision \input{build_id}.} \makeindex diff -r 535e87792eb1 -r 6e988159394b en/Makefile --- 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 \