From c2e3ef1e6336c9d8f078df0d73bf111913f9e750 Mon Sep 17 00:00:00 2001 From: Philipp Le Date: Wed, 1 Jul 2020 23:40:02 +0200 Subject: Replace manually set revision number and date by Git commit number and date (automatically generated) --- common/imprint.tex | 3 +++ common/settings.tex | 4 +++- common/titlepage.tex | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/imprint.tex b/common/imprint.tex index 6a3e9a1..1b8ab2a 100644 --- a/common/imprint.tex +++ b/common/imprint.tex @@ -37,6 +37,9 @@ License: \LaTeX{} sources at \url{https://github.com/pl33/dcs-lecture-notes}. +Git commit hash: \texttt{\VcsCommitHashLong{} \ifdefined\VcsIsClean \else (dirty) \fi}\\ +Git commit date: \texttt{\VcsCommitTime} + \vspace{1.5em} \hrule{} diff --git a/common/settings.tex b/common/settings.tex index e382b96..bc25edf 100644 --- a/common/settings.tex +++ b/common/settings.tex @@ -298,6 +298,8 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % PDF Metadata +\input{../build/vcs_info.tex} + \def\hyperrefgeneraltitle{Digital Communication Systems - \thekindofdocument{}} \ifdefined\thesubtitle \def\hyperreftitle{\hyperrefgeneraltitle{} - \thesubtitle{}} @@ -308,7 +310,7 @@ \usepackage[ pdftitle={\hyperreftitle{}}, pdfauthor={Philipp Le}, - pdfcreator={LaTeX with hyperref and KOMA-Script on Arch Linux}, + pdfcreator={LaTeX with hyperref and KOMA-Script on Arch Linux, Git commit \VcsCommitHashLong (\VcsCleanStr{}\VcsDirtyStr{})}, pdfsubject={}, pdfkeywords={}, pdfstartview={Fit}, diff --git a/common/titlepage.tex b/common/titlepage.tex index c83303e..0832f5c 100755 --- a/common/titlepage.tex +++ b/common/titlepage.tex @@ -58,6 +58,6 @@ \begin{flushright} \footnotesize - Revision \therevision, \therevisiondate + Serial number \VcsCommitNo, \VcsCommitDate \end{flushright} \end{titlepage} -- cgit v1.1