aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile8
-rw-r--r--doc/rust.texi21
2 files changed, 26 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 081a723b..8e07a9a1 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,10 +1,14 @@
all: rust.pdf rust.html
-%.pdf: %.texi
+version.texi: Makefile
+ git log -1 \
+ --format='@macro gitversion%n%h %ci%n@end macro%n' >$@
+
+%.pdf: %.texi version.texi
texi2pdf $<
-%.html: %.texi
+%.html: %.texi version.texi
makeinfo --html --ifhtml --force --no-split --output=$@ $<
clean:
diff --git a/doc/rust.texi b/doc/rust.texi
index c36a099b..0f0a0f44 100644
--- a/doc/rust.texi
+++ b/doc/rust.texi
@@ -6,15 +6,23 @@
@c %**end of header
@syncodeindex fn cp
+@include version.texi
@ifinfo
This manual is for the ``Rust'' programming language.
+
+@uref{http://github.com/graydon/rust}
+
+Version: @gitversion
+
+
Copyright 2006-2010 Graydon Hoare
Copyright 2009-2010 Mozilla Foundation
-All rights reserved (for the time being).
+See accompanying LICENSE.txt for terms.
+
@end ifinfo
@dircategory Programming
@@ -30,13 +38,24 @@ All rights reserved (for the time being).
@page
@vskip 0pt plus 1filll
+
+
+@uref{http://github.com/graydon/rust}
+
+Version: @gitversion
+
+@sp 2
+
Copyright @copyright{} 2006-2010 Graydon Hoare
Copyright @copyright{} 2009-2010 Mozilla Foundation
See accompanying LICENSE.txt for terms.
+
@end titlepage
+@everyfooting @| @emph{-- Draft @today --} @|
+
@ifnottex
@node Top
@top Top