3 # Run the xmlto command, filtering its output to
4 # reduce the amount of useless warnings in the build log.
6 # Exit with the status of the xmlto process, not the status of the
7 # output filtering commands
9 # This is a bit twisty, but avoids any temp files by using pipes for
10 # everything. It routes the command output through file
11 # descriptor 4 while sending the (numeric) exit status through
14 (((("$@" 2>&1; echo $?
>&3) |
17 grep -v 'hyphenation' |
18 grep -v 'Font.*not found' |
20 grep -v Rendered
>&4) 3>&1) |
21 (read status
; exit $status)) 4>&1