aboutsummaryrefslogtreecommitdiff
path: root/projdoc.cls
diff options
context:
space:
mode:
authorMax-001 <80035972+Max-001@users.noreply.github.com>2024-09-19 17:35:06 +0200
committerMax-001 <80035972+Max-001@users.noreply.github.com>2024-09-19 17:35:06 +0200
commit36409a542b1b9ccd42d71dc55ca6414276f93dcf (patch)
tree4a9bf35e574f1964202d8a058b4195c126ef3d9d /projdoc.cls
parent33c573aa26198822e7873edcd567553eb6aebd79 (diff)
parent41ac21680ef13e2db543ff56728ecffe504d6850 (diff)
Merge remote-tracking branch 'origin/master' into max/time
Diffstat (limited to 'projdoc.cls')
-rw-r--r--projdoc.cls11
1 files changed, 8 insertions, 3 deletions
diff --git a/projdoc.cls b/projdoc.cls
index fe6317b..ee94835 100644
--- a/projdoc.cls
+++ b/projdoc.cls
@@ -164,8 +164,6 @@
\def\project#1{\def\@project{#1}}
\let\@organization\relax
\def\organization#1{\def\@organization{#1}}
-\let\@version\relax
-\def\version#1{\def\@version{#1}}
\def\@maketitle{%
\centering%
\parskip=0pt%
@@ -195,8 +193,15 @@
}%
\vfill\flushright%
\par{%
- \par{\strut{}Version \@version\strut}%
\par{\strut\@date\strut}%
+ \begingroup%
+ \endlinechar=\m@ne\everyeof{\noexpand}%
+ \edef\x{%
+ \endgroup%
+ \def\noexpand\commit{\@@input|"git rev-parse --short HEAD" }%
+ }%
+ \x%
+ \par{\strut\footnotesize({\ttfamily\commit})\strut}%
}%
\par\vspace*{2in}%
}