Edit

IABSD.fr/xenocara/xserver/doc/filter-xmlto.sh

Branch :

  • Show log

    Commit

  • Author : matthieu
    Date : 2015-09-16 19:10:19
    Hash : 86ea9f12
    Message : Update to xserver 1.17.2. tested by dcoppa@, jsg@, jasper@ & naddy@

  • xserver/doc/filter-xmlto.sh
  • #!/bin/sh
    #
    # Run the xmlto command, filtering its output to
    # reduce the amount of useless warnings in the build log.
    #
    # Exit with the status of the xmlto process, not the status of the
    # output filtering commands
    #
    # This is a bit twisty, but avoids any temp files by using pipes for
    # everything. It routes the command output through file
    # descriptor 4 while sending the (numeric) exit status through
    # standard output.
    #
    (((("$@" 2>&1; echo $? >&3) |
           grep -v overflows |
           grep -v 'Making' |
           grep -v 'hyphenation' |
           grep -v 'Font.*not found' |
           grep -v '/tmp/xml' |
           grep -v Rendered >&4) 3>&1) |
         (read status; exit $status)) 4>&1