Add build version/time
This commit is contained in:
13
Makefile
13
Makefile
@ -1,5 +1,6 @@
|
||||
all: translators
|
||||
all: translators version time
|
||||
rubber -m xelatex faif-2.0.tex
|
||||
cp faif-2.0.pdf faif-2.0-$(shell git describe --abbrev=0 --tags).pdf
|
||||
|
||||
open: all
|
||||
xdg-open faif-2.0.pdf
|
||||
@ -11,3 +12,13 @@ translators:
|
||||
git shortlog --summary --numbered | cut -c8- | awk 1 ORS=', ' \
|
||||
| sed 's/, $$/./' | rev | sed 's/ ,/ и /' | rev \
|
||||
> translators.tex
|
||||
|
||||
version:
|
||||
git describe --abbrev=0 --tags | tr -d '\n' > build-ver.tex
|
||||
echo -n '-' >> build-ver.tex
|
||||
git rev-parse --short HEAD | tr -d '\n' >> build-ver.tex
|
||||
echo -n ',' >> build-ver.tex
|
||||
|
||||
time:
|
||||
date -I | tr -d '\n' > build-time.tex
|
||||
echo -n '.' >> build-time.tex
|
||||
|
Reference in New Issue
Block a user