summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-14 19:50:16 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-12 22:15:12 +0000
commit3341330f3aef1e55ed57daedde68500d5f3ea127 (patch)
tree7a60a1f23f090824f31579c75cce8539993d5dc0 /build
parent0ec7e35184769ad843a03fc9fda2e0357a281796 (diff)
all: show 'DRAFT' in page header, disable DRAFT watermark
The 'DRAFT' watermark in the page background is a hindrance when trying to copy-paste text from the rendered PDFs. It segments the texts so that many code lines cannot be marked in whole to copy. So drop the watermark and instead just show 'DRAFT' in the page header. Change-Id: Ie22cdddf46bf7640e7f027940a6db904bf639142
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.asciidoc.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/Makefile.asciidoc.inc b/build/Makefile.asciidoc.inc
index fad91fa..82721ff 100644
--- a/build/Makefile.asciidoc.inc
+++ b/build/Makefile.asciidoc.inc
@@ -16,15 +16,15 @@ ASCIIDOCSTYLE ?= $(BUILDDIR)/custom-dblatex.sty
cleanfiles += $(ASCIIDOCPDFS)
ASCIIDOC_OPTS := -f $(BUILDDIR)/mscgen-filter.conf -f $(BUILDDIR)/diag-filter.conf -f $(BUILDDIR)/docinfo-releaseinfo.conf
-DBLATEX_OPTS := -s $(ASCIIDOCSTYLE) -P draft.mode=yes
+DBLATEX_OPTS := -s $(ASCIIDOCSTYLE) -P draft.mode=yes -P draft.watermark=0
ifeq (,$(BUILD_RELEASE))
- DBLATEX_OPTS += -P draft.watermark=1
+ REVNUMBER := DRAFT $(GIT_VERSION)
else
- DBLATEX_OPTS += -P draft.watermark=0
+ REVNUMBER := $(GIT_VERSION)
endif
-A2X_OPTS := -L --asciidoc-opts="$(ASCIIDOC_OPTS)" --dblatex-opts="$(DBLATEX_OPTS)" -a docinfo -a revnumber="$(GIT_VERSION)" -a revdate="$(GIT_DATE)"
+A2X_OPTS := -L --asciidoc-opts="$(ASCIIDOC_OPTS)" --dblatex-opts="$(DBLATEX_OPTS)" -a docinfo -a revnumber="$(REVNUMBER)" -a revdate="$(GIT_DATE)"
all: $(ASCIIDOCPDFS)