summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-07-19 15:31:55 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-07-19 16:24:29 +0200
commit36cc3e748cb4d766bfa3795643186ab86121d14d (patch)
tree199afb125912f07e5ca14d6996c399776be8696c /build
parent2d133928e8d7b381d21c385146c9f19242144e16 (diff)
osmux-reference: Add traffic saving plot
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.asciidoc.inc2
-rw-r--r--build/python2-filter.conf21
2 files changed, 22 insertions, 1 deletions
diff --git a/build/Makefile.asciidoc.inc b/build/Makefile.asciidoc.inc
index 56a6ed9..660d72a 100644
--- a/build/Makefile.asciidoc.inc
+++ b/build/Makefile.asciidoc.inc
@@ -15,7 +15,7 @@ ASCIIDOCSTYLE ?= $(BUILDDIR)/custom-dblatex.sty
cleanfiles += $(ASCIIDOCPDFS)
-ASCIIDOC_OPTS := -f $(BUILDDIR)/mscgen-filter.conf -f $(BUILDDIR)/diag-filter.conf -f $(BUILDDIR)/docinfo-releaseinfo.conf
+ASCIIDOC_OPTS := -f $(BUILDDIR)/mscgen-filter.conf -f $(BUILDDIR)/diag-filter.conf -f $(BUILDDIR)/docinfo-releaseinfo.conf -f $(BUILDDIR)/python2-filter.conf
DBLATEX_OPTS := -s $(ASCIIDOCSTYLE) -P draft.mode=yes -P draft.watermark=0
ifeq (,$(BUILD_RELEASE))
diff --git a/build/python2-filter.conf b/build/python2-filter.conf
new file mode 100644
index 0000000..ca2ddaf
--- /dev/null
+++ b/build/python2-filter.conf
@@ -0,0 +1,21 @@
+#
+# AsciiDoc mscgen filter configuration file.
+#
+
+[python2-filter-style]
+python2-style=template="python2-block",subs=(),posattrs=("style","target"),filter='../build/filter-wrapper.py python2 - --output="{outdir={indir}}/{imagesdir=}{imagesdir?/}{target}"'
+
+[blockdef-listing]
+template::[python2-filter-style]
+
+[paradef-default]
+template::[python2-filter-style]
+
+[python2-block]
+template::[filter-image-pngsvg-blockmacro]
+
+[filter-image-pngsvg-blockmacro]
+{target%}{counter2:target-number}
+{target%}{set2:target:{docname}__{target-number}.{format={basebackend-docbook!png}{basebackend-docbook?png}}}
+|
+template::[image-blockmacro]