Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIcIU-00FPwQ-PS for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2024 23:27:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tIcIR-00Dbf0-9j for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2024 23:27:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIcIQ-00Dbes-Vi for pgsql-hackers@lists.postgresql.org; Tue, 03 Dec 2024 23:27:12 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIcIL-000u8R-9v; Tue, 03 Dec 2024 23:27:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=eHhyfzOI5ruvY1j5GPHyMsHYghxY5DxCDbIxPRF6U54=; b=UOJWs Nx5sFesSTrVgNnmBvNAHYQFTB3E2t4LFQHYSmG55e5qSj+wu+nsQFankFAH3txmKSjDngpxeVxUvr w+uaSR/Ai7VJYaCyJWbvEzQUH92xs0wyI6nNCpf61E32Q/t5o46GL7IHrYpqE9UdSmbCgbvpsFAyn 6lrJaj6gFmbcxtT24hKS5vSXBUbZM3UZkYyRxkE9wsvjCTLdqcKIJpvbyKrQ4p9mMX30fWhKy07C4 fqcDOcvAV/FUcDpuhCidmwCJGB4F5gItxUYlHJeQj8gQQbWTWyE+0UmQeSQmn070KbSoTOt88K1vo lAqZmuqH0cqV+kdwWQuaE0G0tgvfg==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1tIcIG-00CMZk-09; Tue, 03 Dec 2024 18:27:00 -0500 Date: Tue, 3 Dec 2024 18:27:00 -0500 From: Bruce Momjian To: Peter Eisentraut Cc: Tom Lane , Tatsuo Ishii , nagata@sraoss.co.jp, daniel@yesql.se, pgsql-hackers@postgresql.org Subject: Re: Doc: typo in config.sgml Message-ID: References: <20241119193121.7ba727c489b5f0b6d20f9c25@sraoss.co.jp> <20241126.182513.1752581942460106099.ishii@postgresql.org> <1682864.1732639382@sss.pgh.pa.us> <1689262.1732642897@sss.pgh.pa.us> <88cb6ecf-22bb-431e-974b-1cd236a80364@eisentraut.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="U2nrDkLDdiekRREj" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --U2nrDkLDdiekRREj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 3, 2024 at 03:58:20PM -0500, Bruce Momjian wrote: > On Tue, Dec 3, 2024 at 09:05:45PM +0100, Peter Eisentraut wrote: > > On 26.11.24 20:04, Bruce Momjian wrote: > > > %.pdf: %.fo $(ALL_IMAGES) > > > - $(FOP) -fo $< -pdf $@ > > > + LANG=C $(FOP) -fo $< -pdf $@ 2>&1 | \ > > > + awk 'BEGIN { warn = 0 } { print }/not available in font/ { warn = 1 } \ > > > + END { if (warn != 0) print("\nFound characters that cannot be displayed in the PDF document") }' 1>&2 > > > > Wouldn't that lose the exit code from the fop execution? > > Yikes, I think it would. Let me work on a fix now. Fixed in the attached applied patch. Glad you saw this mistake. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future. --U2nrDkLDdiekRREj Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="master.diff" diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 4a08b6f433e..9d52715ff4b 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -156,9 +156,11 @@ XSLTPROC_FO_FLAGS += --stringparam img.src.path '$(srcdir)/' $(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_FO_FLAGS) --stringparam paper.type USletter -o $@ $^ %.pdf: %.fo $(ALL_IMAGES) - LANG=C $(FOP) -fo $< -pdf $@ 2>&1 | \ - awk 'BEGIN { warn = 0 } { 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") }' 1>&2 + @# 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 } \ + 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 ## --U2nrDkLDdiekRREj--