diff options
| author | Philipp Le <philipp-le-prviat@freenet.de> | 2020-07-01 23:40:02 +0200 |
|---|---|---|
| committer | Philipp Le <philipp-le-prviat@freenet.de> | 2021-03-04 22:44:39 +0100 |
| commit | c2e3ef1e6336c9d8f078df0d73bf111913f9e750 (patch) | |
| tree | 99c54b49ec2f64bf5cb0449f3f8421e8cbc6adb8 /common | |
| parent | c1db4510292b388c228d8d8dab18c6d09cc869ba (diff) | |
| download | dcs-lecture-notes-c2e3ef1e6336c9d8f078df0d73bf111913f9e750.zip dcs-lecture-notes-c2e3ef1e6336c9d8f078df0d73bf111913f9e750.tar.gz dcs-lecture-notes-c2e3ef1e6336c9d8f078df0d73bf111913f9e750.tar.bz2 | |
Replace manually set revision number and date by Git commit number and date (automatically generated)
Diffstat (limited to 'common')
| -rw-r--r-- | common/imprint.tex | 3 | ||||
| -rw-r--r-- | common/settings.tex | 4 | ||||
| -rwxr-xr-x | common/titlepage.tex | 2 |
3 files changed, 7 insertions, 2 deletions
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} |
