From 13446836026639fbc1aeb562a1f65f272c106176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 30 Mar 2021 17:45:06 +0300 Subject: [PATCH] nicer headers --- IV/Makefile | 7 +++---- IV/mj-msc.tex | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/IV/Makefile b/IV/Makefile index 2b22e8b..690439f 100644 --- a/IV/Makefile +++ b/IV/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/IV/mj-msc.tex b/IV/mj-msc.tex index 56ec792..b85b0ba 100644 --- a/IV/mj-msc.tex +++ b/IV/mj-msc.tex @@ -44,8 +44,7 @@ \date{ \vspace{10mm} - Version: \VCDescribe \\ \vspace{4mm} - Generated At: \GeneratedAt + Version: \VCDescribe } \begin{document}