diff options
Diffstat (limited to 'tests/auto/qtokenautomaton/generateTokenizers.sh')
-rwxr-xr-x | tests/auto/qtokenautomaton/generateTokenizers.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qtokenautomaton/generateTokenizers.sh b/tests/auto/qtokenautomaton/generateTokenizers.sh new file mode 100755 index 0000000..1fce40e --- /dev/null +++ b/tests/auto/qtokenautomaton/generateTokenizers.sh @@ -0,0 +1,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 |