From d7691a8fb0fec9b2047793251881d05b209b5b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 May 2021 22:57:46 +0300 Subject: [PATCH] nicer headers --- Makefile | 7 +++---- mj-msc.tex | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2b22e8b..690439f 100644 --- a/Makefile +++ b/Makefile @@ -63,9 +63,8 @@ slides-2021-03-29.html: slides-2021-03-29.txt $(SOURCE): wget http://download.geofabrik.de/europe/$@ -REF = $(shell git describe --tags --dirty) -version.tex: $(shell git rev-parse --show-toplevel)/.git +REF = $(shell git describe --abbrev=12 --always --dirty) +version.tex: Makefile $(shell git rev-parse --show-toplevel)/.git ( \ - date '+\gdef\GeneratedAt{%F %T %Z}%'; \ - printf '\gdef\VCDescribe{%s}%%\n' $(REF); \ + TZ=UTC date '+\gdef\VCDescribe{%F ($(REF))}%'; \ ) > $@ diff --git a/mj-msc.tex b/mj-msc.tex index 56ec792..b85b0ba 100644 --- a/mj-msc.tex +++ b/mj-msc.tex @@ -44,8 +44,7 @@ \date{ \vspace{10mm} - Version: \VCDescribe \\ \vspace{4mm} - Generated At: \GeneratedAt + Version: \VCDescribe } \begin{document}