]> git.saurik.com Git - wxWidgets.git/blame - wxPython/docs/bin/simplify
reSWIGged
[wxWidgets.git] / wxPython / docs / bin / simplify
CommitLineData
685d8985
RD
1#!/bin/bash
2#----------------------------------------------------------------------
3# Uses simplify.xsl to convert the XML files output by SWIG to a
4# simpler XML format that contains only the metadata that we are
5# interested in. Converts all input files into a single output file.
6#----------------------------------------------------------------------
7
8if [ ! -d wxPython ]; then
9 echo "Please run this script from the root wxPython directory."
10 exit 1
11fi
12
13
14XSLT=docs/bin/simplify.xsl
15MODULES=`python -c "import sys,setup; [sys.stdout.write(e.name[1:]+' ') for e in setup.wxpExtensions]"`
16DEST=docs/xml/wxPython-metadata.xml
17SRC=docs/xml-raw
18
19
20echo "Using: " $XSLT
21echo "Writing to: " $DEST
22echo "Modules: " $MODULES
23
24
25
26echo "<?xml version='1.0'?>" > $DEST
27echo "<top>" >> $DEST
28
29for m in $MODULES; do
30 F=$SRC/${m}_swig.xml
31 echo $F
32 xsltproc $XSLT $F >> $DEST
33done
34
35echo "</top>" >> $DEST