Commits

Bryan O'Sullivan  committed 6e98815

Add revision ID to output.

  • Participants
  • Parent commits 535e877

Comments (0)

Files changed (2)

File en/00book.tex

 
 \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
 
 # 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 \
 	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 \