diff options
| author | Graydon Hoare <[email protected]> | 2010-07-03 00:27:33 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-03 00:27:33 -0700 |
| commit | df0fa603d091eb92e9ce7d2be969ae78a11057e2 (patch) | |
| tree | 6ce0b17ca8366bd1fca560b4ca33f7dffb0a16cb /doc | |
| parent | Hey, what's a coding sprint without an uncovered register allocation bug? No ... (diff) | |
| download | rust-df0fa603d091eb92e9ce7d2be969ae78a11057e2.tar.xz rust-df0fa603d091eb92e9ce7d2be969ae78a11057e2.zip | |
Add version-stamp machinery (and put "Draft + datestamp" into doc footer).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/Makefile | 8 | ||||
| -rw-r--r-- | doc/rust.texi | 21 |
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 |