Revision 0f1cfbe4f2a2fbcd890559e71f87333dfd92d77b authored by Sebastian Rahtz on 04 March 2015, 09:03:21 UTC, committed by Sebastian Rahtz on 04 March 2015, 09:03:21 UTC
1 parent 59643e1
run-onvdl
#!/bin/sh
# onvdl seems to report an "unfinished element" every
# time a required child element from another namespace occurs
# in the instance. In our case, this happens every time there
# is an <egXML> child of <exemplum>. Since the error message is
# non-specific (doesn't tell us that <exemplum> is the
# unfinished element or that one of <eg> or <egXML> would be
# required to make it finished) we end up throwing out all such
# messages via the grep -v command so we're not annoyed by the
# over 800 that are not really problems.
if which onvdl
then
onvdl $1 $2 | grep -v "fatal: exception .com.oxygenxml.validate.isoschematron" > $$.nvdl.log
else
if test ! -f oNVDL/bin/onvdl.jar
then
echo download ONVDL from http://www.oxygenxml.com/InstData/Editor/onvdl/onvdl-20070517.zip
curl -s -O http://www.oxygenxml.com/InstData/Editor/onvdl/onvdl-20070517.zip
unzip -q onvdl-20070517.zip oNVDL/bin/*
rm onvdl-20070517.zip
fi
java -Xmx1200m -jar oNVDL/bin/onvdl.jar $1 $2 | grep -v "fatal: exception .com.oxygenxml.validate.isoschematron" > $$.nvdl.log
fi
grep error $$.nvdl.log
if [ $? -eq 0 ]
then
cat $$.nvdl.log
rm $$.nvdl.log
echo Error: nvdl run found problems
exit 1
else
cat $$.nvdl.log
rm $$.nvdl.log
exit 0
fi
Computing file changes ...