1
0
free-as-in-freedom-v2-ru/Makefile

33 lines
770 B
Makefile
Raw Normal View History

2019-08-27 23:41:15 +00:00
all: pdf fb2
pdf: metadata
2019-06-15 01:39:14 +00:00
rubber -m xelatex faif-2.0.tex
2019-08-06 08:50:03 +00:00
cp faif-2.0.pdf faif-2.0-$(shell git describe --abbrev=0 --tags).pdf
2019-06-15 00:54:25 +00:00
2019-08-27 23:41:15 +00:00
fb2: metadata
pandoc -t fb2 faif-2.0.tex > faif-2.0.fb2
cp faif-2.0.fb2 faif-2.0-$(shell git describe --abbrev=0 --tags).fb2
metadata: translators version time
2019-06-15 00:54:25 +00:00
open: all
xdg-open faif-2.0.pdf
clean:
git clean -xfd
2019-07-31 09:58:07 +00:00
translators:
git shortlog --summary --numbered | cut -c8- | awk 1 ORS=', ' \
| sed 's/, $$/./' | rev | sed 's/ ,/ и /' | rev \
> translators.tex
2019-08-06 08:50:03 +00:00
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