summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtokenautomaton/generateTokenizers.sh
blob: 1fce40e569033d3c8b7a99690b5bc6c969f51005 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
tokenizers=`find tokenizers/* -type d`
for tokenizer in $tokenizers; do
    pushd $tokenizer
    basename=`basename $tokenizer`
    xmllint --noout --schema ../../../../../src/xmlpatterns/qtokenautomaton/qtokenautomaton.xsd $basename.xml
    java net.sf.saxon.Transform -xsl:../../../../../src/xmlpatterns/qtokenautomaton/qautomaton2cpp.xsl $basename.xml
    popd
done