changeset 29:6e988159394b

Add revision ID to output.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 12 Jul 2006 00:33:27 -0700
parents 535e87792eb1
children 51d94bd2804c
files en/00book.tex en/Makefile
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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 \