stud

study spacejunk
Log | Files | Refs | LICENSE

commit f758b1053ef943c0018cdbbacf17da9f0901d7fe (tree)
parent f465d04a981b7dcfdb6dc6e14ada7d1ffd5ec4a3
Author: Motiejus Jakštys <desired.mta@gmail.com>
Date:   Tue,  2 Jun 2020 10:45:13 +0300

simpler version.tex

Diffstat:
MII/Referatas/Makefile | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/II/Referatas/Makefile b/II/Referatas/Makefile @@ -68,11 +68,10 @@ db/.faux_ready: zeimena.gpkg sinewave2.gpkg managedb ogr2ogr -f PostgreSQL "PG:host=127.0.0.1 user=osm dbname=osm" sinewave2.gpkg touch $@ -REF = $(shell git describe --tags) -DIRTY = $(shell git status --porcelain | awk '{print"-dirty";exit}') +REF = $(shell git describe --tags --dirty) GIT_DIR = $(shell git rev-parse --show-toplevel)/.git version.tex: $(shell git ls-files .) $(GIT_DIR) ( \ date '+\gdef\GeneratedAt{%F %T %Z}%'; \ - printf '\gdef\VCDescribe{%s%s}%%\n' $(REF) $(DIRTY); \ + printf '\gdef\VCDescribe{%s}%%\n' $(REF); \ ) > $@