aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2024-12-03 22:31:12 -0500
committerBruce Momjian <bruce@momjian.us>2024-12-03 22:31:33 -0500
commit77c189cdafe3873b7273149fbc490cc11c431cc3 (patch)
treec55a1df92f931f2d18508e36cb19e5628ba1a6c1
parent962da900ac8f0927f1af2fd811ca67fa163c873a (diff)
downloadpostgresql-77c189cdafe3873b7273149fbc490cc11c431cc3.tar.gz
postgresql-77c189cdafe3873b7273149fbc490cc11c431cc3.zip
Properly use $(AWK) in Makefile, not 'awk'
Fix for commit 498f1307569. Backpatch-through: master
-rw-r--r--doc/src/sgml/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index 9d52715ff4b..8475d9e965f 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -158,7 +158,7 @@ XSLTPROC_FO_FLAGS += --stringparam img.src.path '$(srcdir)/'
%.pdf: %.fo $(ALL_IMAGES)
@# There is no easy way to pipe output and capture its return code, so output a special string on failure.
{ LANG=C $(FOP) -fo $< -pdf $@ 2>&1; [ "$$?" -ne 0 ] && echo "FOP_ERROR"; } | \
- awk 'BEGIN { warn = 0 } ! /^FOP_ERROR$$/ { print } /not available in font/ { warn = 1 } \
+ $(AWK) 'BEGIN { warn = 0 } ! /^FOP_ERROR$$/ { 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"); \
if ($$0 ~ /^FOP_ERROR$$/) { exit 1} }' 1>&2