source: branches/tree/HELP_SOURCE/arb_xslt.sh

Last change on this file was 18785, checked in by westram, 3 years ago
  • Property svn:executable set to *
File size: 250 bytes
Line 
1#!/bin/bash
2
3xslt() {
4    set -x
5    xsltproc "$@"
6}
7
8format_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 )
13exit ${PIPESTATUS[0]}
Note: See TracBrowser for help on using the repository browser.