diff options
Diffstat (limited to 'test/w3c/convert-tests.sh')
-rwxr-xr-x | test/w3c/convert-tests.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/w3c/convert-tests.sh b/test/w3c/convert-tests.sh index a8357aa..ea624ea 100755 --- a/test/w3c/convert-tests.sh +++ b/test/w3c/convert-tests.sh @@ -23,4 +23,12 @@ cp txml/*.txt ecma/ cp txml/*.txt xpath/ find ./ecma -type f -exec grep -Ili 'datamodel="xpath"' {} \; |xargs rm -fv -find ./xpath -type f -exec grep -Ili 'datamodel="ecmascript"' {} \; |xargs rm -fv
\ No newline at end of file +find ./xpath -type f -exec grep -Ili 'datamodel="ecmascript"' {} \; |xargs rm -fv + +SCXMLS=`find . -type f -name '*.scxml'` +for SCXML in $SCXMLS +do + mv $SCXML $SCXML.unformatted.xml + xmllint --format $SCXML.unformatted.xml > $SCXML + rm $SCXML.unformatted.xml +done |