commit: 8e770ef7b2ec1c9b13e7df2d7ccadb9ad7550695
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 9 19:41:09 2017 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Jun 9 19:41:09 2017 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=8e770ef7
Add reference to latest git commit.
Makefile | 2 +-
pms.cls | 5 +++++
pms.tex | 2 ++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 1f500d5..ef9991b 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ pms.bbl: pms.bib $(LATEXFILES) vc.tex
bibtex pms
vc.tex: $(SOURCES)
- /bin/sh ./vc
+ /bin/sh ./vc -m
eapi-cheatsheet.pdf: pms.pdf
@# nothing to do here, since this is also part of the main document
diff --git a/pms.cls b/pms.cls
index 150a1a0..45705e3 100644
--- a/pms.cls
+++ b/pms.cls
@@ -162,8 +162,13 @@
\ifthenelse{\equal{\VCDateISO}{}}
{
\date{Generated on: \today}
+ \newcommand{\commitinfo}{}
}{
\date{\printdate{\VCDateISO}}
+ \newcommand{\commitinfo}{%
+ This version corresponds to commit \VCRevision
+ \ifthenelse{\VCModified=0}{}{ with local changes}.
+ }
}
% Set page title
diff --git a/pms.tex b/pms.tex
index 73b7dac..3f338fb 100644
--- a/pms.tex
+++ b/pms.tex
@@ -37,6 +37,8 @@
This document is released under the Creative Commons
Attribution-ShareAlike 3.0 Licence. The
full text of this licence can be found at
\url{http://creativecommons.org/licenses/by-sa/3.0/}.
+
+ \commitinfo
}
\tableofcontents