aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMarc Fonvieille <blackend@FreeBSD.org>2021-01-10 16:01:58 +0000
committerMarc Fonvieille <blackend@FreeBSD.org>2021-01-10 16:01:58 +0000
commit0d6f42cb77983bc8c908294b8fcbaa029040810a (patch)
treec7adcd4699ad66c8487d0f44c45eb4840f0a7a1a /share
parent3b4e46a06446ee74cc7705a870f46e41b0bb60e5 (diff)
downloaddoc-0d6f42cb77983bc8c908294b8fcbaa029040810a.tar.gz
doc-0d6f42cb77983bc8c908294b8fcbaa029040810a.zip
Redirect gs stdout to stderr. This will prevent warnings to be part of
the generated file causing broken files. This does not redirect drivers output which still write to stdout. I'm currently seeing "**** Warning: glyf overlaps cmap, truncating." during esptopng conversion leading to broken .pnm. This change prevents the broken .pnm file.
Diffstat (limited to 'share')
-rw-r--r--share/mk/doc.commands.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/doc.commands.mk b/share/mk/doc.commands.mk
index 6f2c1f2282..fa759eb09c 100644
--- a/share/mk/doc.commands.mk
+++ b/share/mk/doc.commands.mk
@@ -117,7 +117,7 @@ SCR2PNGOPTS?= ${SCR2PNGFLAGS}
SCR2TXT?= ${PREFIX}/bin/scr2txt
SCR2TXTOPTS?= -l ${SCR2TXTFLAGS}
EPS2PNM?= ${PREFIX}/bin/gs
-EPS2PNMOPTS?= -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4 \
+EPS2PNMOPTS?= -sstdout=%stderr -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4 \
-dEPSCrop -r${EPS2PNM_RES}x${EPS2PNM_RES} \
-dNOPAUSE -dSAFER -sDEVICE=pnm -sOutputFile=-
#