source:
branches/properties/HELP_SOURCE/arb_xslt.sh
| Last change on this file was 18781, checked in by westram, 4 years ago | |
|---|---|
|
|
| File size: 250 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/bash |
| 2 | |
| 3 | xslt() { |
| 4 | set -x |
| 5 | xsltproc "$@" |
| 6 | } |
| 7 | |
| 8 | format_error_messages() { |
| 9 | perl -pne 's/^([a-z]+)\s+error:\s+file\s+([^\s]+)\s+line\s+([0-9]+)\s+/\2:\3: Error: [\1] /' |
| 10 | } |
| 11 | |
| 12 | ( xslt "$@" ) 2> >( format_error_messages >&2 ) |
| 13 | exit ${PIPESTATUS[0]} |
Note: See TracBrowser
for help on using the repository browser.
