mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 14:21:49 +03:00
Properly use $(AWK) in Makefile, not 'awk'
Fix for commit 498f1307569. Backpatch-through: master
This commit is contained in:
parent
962da900ac
commit
77c189cdaf
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user