hgbook
changeset 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 | 535e87792eb1 |
children | 51d94bd2804c |
files | en/00book.tex en/Makefile |
line diff
1.1 --- a/en/00book.tex Wed Jul 12 00:14:52 2006 -0700 1.2 +++ b/en/00book.tex Wed Jul 12 00:33:27 2006 -0700 1.3 @@ -15,10 +15,11 @@ 1.4 1.5 \title{Distributed revision control with Mercurial} 1.6 \author{Bryan O'Sullivan} 1.7 -\date{Copyright \copyright\ 2006 Bryan O'Sullivan. This material may 1.8 - be distributed only subject to the terms and conditions set forth in 1.9 - version 1.0 of the Open Publication License. Please refer to 1.10 - Appendix~\ref{cha:opl} for the license text.} 1.11 +\date{Copyright \copyright\ 2006 Bryan O'Sullivan.\\ 1.12 + This material may be distributed only subject to the terms and 1.13 + conditions set forth in version 1.0 of the Open Publication License. 1.14 + Please refer to Appendix~\ref{cha:opl} for the license text.\\ 1.15 + This book was prepared from revision \input{build_id}.} 1.16 1.17 \makeindex 1.18
2.1 --- a/en/Makefile Wed Jul 12 00:14:52 2006 -0700 2.2 +++ b/en/Makefile Wed Jul 12 00:33:27 2006 -0700 2.3 @@ -1,6 +1,6 @@ 2.4 # This makefile requires GNU make. 2.5 2.6 -hg_id := $(shell hg parents --template '{node|short}' | head -1) 2.7 +hg_id := $(shell hg parents --template '{node|short}\n' | head -1) 2.8 2.9 sources := \ 2.10 00book.tex \ 2.11 @@ -107,7 +107,7 @@ 2.12 cd examples && ./run-example 2.13 2.14 build_id.tex: $(wildcard ../.hg/00changelog.[id]) 2.15 - echo $(hg_id) > build_id.tex 2.16 + echo -n $(hg_id) > build_id.tex 2.17 2.18 clean: 2.19 rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \