mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									fb056564ec
								
							
						
					
					
						commit
						ecb8226af6
					
				| @ -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,
 | # There is no easy way to pipe output and capture its return code,
 | ||||||
| # so add a final line to report the return code.
 | # so add a final line to report the return code.
 | ||||||
| %.pdf: %.fo $(ALL_IMAGES) | %.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 }  \
 | 	$(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 | 	if ($$2 != 0) { exit $$2} }' 1>&2 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user