]>
Commit | Line | Data |
---|---|---|
c005fb28 MW |
1 | #!/bin/sh |
2 | ############################################################################# | |
3 | # Name: preprocess | |
4 | # Purpose: Expand embedded xslt | |
5 | # Author: Mike Wetherell | |
6 | # RCS-ID: $Id$ | |
7 | # Copyright: (c) 2007 Mike Wetherell | |
8 | # Licence: wxWidgets licence | |
9 | ############################################################################# | |
10 | ||
11 | if [ $# -eq 0 -o ! -f "$1" ]; then | |
12 | echo "Usage: $0 FILE..." | |
13 | echo "Expands embedded xslt" | |
14 | exit 1 | |
15 | fi >&2 | |
16 | ||
17 | DIR="`dirname $0`" | |
18 | ||
19 | while [ $# -gt 0 ]; do | |
20 | xsltproc --xinclude $DIR/embedded.xsl "$1" 2>/dev/null | | |
21 | xsltproc --xinclude - "$1" | |
22 | shift | |
23 | done |