source: branches/stable/HELP_SOURCE/arb_xslt.sh

Last change on this file was 10842, checked in by westram, 11 years ago
  • Property svn:executable set to *
File size: 258 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.