manual: Embed the build version on the second page

Since these will be printed on real dead paper and sent out in the
world, it seems like it may be a very good idea if we can identify what
version they were built from.
This commit is contained in:
Simon Howard 2025-06-03 13:35:54 -04:00
parent 42a8b9aa18
commit 6772452d6a
4 changed files with 11 additions and 1 deletions

View file

@ -8,7 +8,8 @@
# es Spanish
# fr French
ASCIIDOCTOR_FLAGS = -a pdf-page-size=A5
BUILD_VERSION=$(shell git describe --abbrev=8 --dirty 2>/dev/null)
ASCIIDOCTOR_FLAGS = -a pdf-page-size=A5 -a build-version=$(BUILD_VERSION)
MANUAL_ADOC_FILES=$(wildcard freedoom-manual-??.adoc)
MANUAL_PDF_FILES=$(subst .adoc,.pdf,$(MANUAL_ADOC_FILES))
PRINT_PDF_FILES=$(subst .adoc,-print.pdf,$(MANUAL_ADOC_FILES))