]> git.saurik.com Git - wxWidgets.git/blame - build/buildbot/tools/preprocess.sh
wxMotif should use wxX11 wxPalette instead of duplicating it
[wxWidgets.git] / build / buildbot / tools / preprocess.sh
CommitLineData
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
11if [ $# -eq 0 -o ! -f "$1" ]; then
12 echo "Usage: $0 FILE..."
13 echo "Expands embedded xslt"
14 exit 1
15fi >&2
16
17DIR="`dirname $0`"
18
19while [ $# -gt 0 ]; do
20 xsltproc --xinclude $DIR/embedded.xsl "$1" 2>/dev/null |
21 xsltproc --xinclude - "$1"
22 shift
23done