From 1a016bc2b8d7bbdc52f3c41fb17a5ab0ef7b6d0f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 6 Sep 2020 10:54:05 +0200 Subject: report: Add b/w PDF for printouts Might come handy if you need a physical reference card. --- gen.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gen.sh') diff --git a/gen.sh b/gen.sh index 2880a00..490a198 100755 --- a/gen.sh +++ b/gen.sh @@ -37,6 +37,12 @@ rule opt rule render-svg command = lulua-render -l \$layout svg \$out +rule render-svg-print + command = lulua-render -l \$layout svg -s lulua/data/render-svg-print.css \$out + +rule svg2pdf + command = rsvg-convert -f pdf \$in > \$out + rule render-svg-heat command = lulua-render -l \$layout svg --heatmap=\$in \$out @@ -198,6 +204,11 @@ build \$tempdir/${l}-heat.yaml: analyze-heat \$statsdir/${l}/all.pickle || \$tem build \$reportdir/${l}-heat.svg: render-svg-heat \$tempdir/${l}-heat.yaml || \$reportdir layout = ${l} +build \$tempdir/${l}-print.svg: render-svg-print || \$tempdir + layout = ${l} + +build \$reportdir/${l}.pdf: svg2pdf \$tempdir/${l}-print.svg || \$reportdir + build \$tempdir/${l}-layoutstats.pickle: analyze-layoutstats \$statsdir/${l}/all.pickle || \$tempdir layout = ${l} -- cgit v1.2.3