]> git.saurik.com Git - wxWidgets.git/blob - wxPython/docs/bin/simplify
Fixed preprocessor warnings
[wxWidgets.git] / wxPython / docs / bin / simplify
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
8 if [ ! -d wxPython ]; then
9 echo "Please run this script from the root wxPython directory."
10 exit 1
11 fi
12
13
14 XSLT=docs/bin/simplify.xsl
15 MODULES=`python -c "import sys,setup; [sys.stdout.write(e.name[1:]+' ') for e in setup.wxpExtensions]"`
16 DEST=docs/xml/wxPython-metadata.xml
17 SRC=docs/xml-raw
18
19
20 echo "Using: " $XSLT
21 echo "Writing to: " $DEST
22 echo "Modules: " $MODULES
23
24
25
26 echo "<?xml version='1.0'?>" > $DEST
27 echo "<wxPython-metadata>" >> $DEST
28
29 for m in $MODULES; do
30 F=$SRC/${m}_swig.xml
31 echo $F
32 xsltproc $XSLT $F >> $DEST
33 done
34
35 echo "</wxPython-metadata>" >> $DEST