aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-02-07 22:12:38 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2025-02-07 22:12:38 -0500
commitecb8226af63dc8f1c0859977102764704368693b (patch)
treeedddaf4a106d90f19f34b0e9b5f3b4f2bfe4153e
parentfb056564ec5bc1c18dd670c963c893cdb6de927e (diff)
downloadpostgresql-ecb8226af63dc8f1c0859977102764704368693b.tar.gz
postgresql-ecb8226af63dc8f1c0859977102764704368693b.zip
PDF docs build: avoid spurious "warn" in build logs.
Improve on e4c886519 so that the string "warn" appears in the output when there's a problem, and not when there isn't. This should silence noise I've been seeing in my buildfarm warning scraper.
-rw-r--r--doc/src/sgml/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index 076b12898eb..11aac913812 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -158,9 +158,9 @@ XSLTPROC_FO_FLAGS += --stringparam img.src.path '$(srcdir)/'
# There is no easy way to pipe output and capture its return code,
# so add a final line to report the return code.
%.pdf: %.fo $(ALL_IMAGES)
- { LANG=C $(FOP) -fo $< -pdf $@ 2>&1; echo "FOP_RETURN $$?"; } | \
+ @ { LANG=C $(FOP) -fo $< -pdf $@ 2>&1; echo "FOP_RETURN $$?"; } | \
$(AWK) 'BEGIN { warn = 0 } $$1 != "FOP_RETURN" { print } /not available in font/ { warn = 1 } \
- END { if (warn != 0) print("\nFound characters that cannot be output in the PDF document; see README.non-ASCII"); \
+ END { if (warn != 0) print("\nWarning: found characters that cannot be output in the PDF document; see README.non-ASCII"); \
if ($$2 != 0) { exit $$2} }' 1>&2