changeset 2:379a802c0210

Add bibliography.
author Bryan O'Sullivan <bos@serpentine.com>
date Sat, 24 Jun 2006 16:14:02 -0700
parents 04e469de601e
children 906d9021f9e5
files .hgignore en/00book.tex en/99book.bib en/99defs.tex en/Makefile en/mq.tex
diffstat 6 files changed, 45 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri Jun 23 12:15:38 2006 -0700
+++ b/.hgignore	Sat Jun 24 16:14:02 2006 -0700
@@ -6,6 +6,9 @@
 .*.swp
 *~
 *.aux
+*.bbl
+*.bib
+*.blg
 *.dvi
 *.lg
 *.lo[fgt]
--- a/en/00book.tex	Fri Jun 23 12:15:38 2006 -0700
+++ b/en/00book.tex	Sat Jun 24 16:14:02 2006 -0700
@@ -24,6 +24,10 @@
 
 \include{mq}
 
+\addcontentsline{toc}{chapter}{Bibliography}
+\bibliographystyle{plain}
+\bibliography{99book}
+
 \end{document}
 
 %%% Local Variables: 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/en/99book.bib	Sat Jun 24 16:14:02 2006 -0700
@@ -0,0 +1,14 @@
+@Unpublished{gruenbacher:2005,
+  author = 	 {Andreas Gruenbacher},
+  title = 	 {How To Survive With Many Patches (Introduction to Quilt)},
+  year = 	 {2005},
+  month = 	 {June},
+  note =         {\url{http://www.suse.de/~agruen/quilt.pdf}},
+}
+
+@Misc{web:quilt,
+  author = 	 {Andreas Gruenbacher, Martin Quinson, Jean Delvare},
+  title = 	 {Patchwork Quilt},
+  note = 	 {\url{http://savannah.nongnu.org/projects/quilt}},
+}
+
--- a/en/99defs.tex	Fri Jun 23 12:15:38 2006 -0700
+++ b/en/99defs.tex	Sat Jun 24 16:14:02 2006 -0700
@@ -1,3 +1,4 @@
+\newcommand{\filename}[1]{\texttt{#1}}
 \newcommand{\hgext}[1]{\texttt{#1}}
 \newcommand{\hgcmd}[1]{``\texttt{hg #1}''}
 \newcommand{\hgcmdargs}[2]{``\texttt{hg #1 #2}''}
--- a/en/Makefile	Fri Jun 23 12:15:38 2006 -0700
+++ b/en/Makefile	Sat Jun 24 16:14:02 2006 -0700
@@ -1,4 +1,8 @@
-sources := 00book.tex mq.tex
+sources := \
+	00book.tex \
+	99book.bib \
+	99defs.tex \
+	mq.tex
 
 latex-options = \
 	-interaction batchmode \
@@ -12,6 +16,8 @@
 pdf/hgbook.pdf: $(sources)
 	mkdir -p $(dir $@)
 	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
+	cp 99book.bib $(dir $@)
+	cd $(dir $@) && bibtex $(basename $(notdir $@))
 	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
 	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
 
--- a/en/mq.tex	Fri Jun 23 12:15:38 2006 -0700
+++ b/en/mq.tex	Sat Jun 24 16:14:02 2006 -0700
@@ -70,11 +70,11 @@
 
 
 In early 2003, Andreas Gruenbacher and Martin Quinson borrowed the
-approach of Andrew's scripts and published a tool called
-\href{http://savannah.nongnu.org/projects/quilt}{``patchwork quilt''},
-or simply ``quilt''.  Because quilt substantially automated patch
-management, it rapidly gained a large following among open source
-software developers.
+approach of Andrew's scripts and published a tool called ``patchwork
+quilt''~\cite{web:quilt}, or simply ``quilt''
+(see~\cite{gruenbacher:2005} for a paper describing it).  Because
+quilt substantially automated patch management, it rapidly gained a
+large following among open source software developers.
 
 Quilt manages a \emph{stack of patches} on top of a directory tree.
 To begin, you tell quilt to manage a directory tree; it stores away
@@ -125,10 +125,18 @@
 Because quilt does not care about revision control tools, it is still
 a tremendously useful piece of software to know about for situations
 where you cannot use Mercurial and MQ.
-\section{Section!}
-\label{sec:sec}
+\section{Getting started with Mercurial Queues}
+\label{sec:mq:start}
 
-Section!
+Because MQ is implemented as an extension, you have to explicitly
+enable it in order to use it.  (You don't need to download anything;
+MQ ships with the standard Mercurial distribution.)  To enable it,
+edit your \filename{~/.hgrc} file, and add the following lines:
+
+\begin{verbatim}
+[extensions]
+hgext.mq =
+\end{verbatim}
 
 %%% Local Variables: 
 %%% mode: latex