2016-12-02 16:14:39 -05:00
|
|
|
#!/bin/sh
|
|
|
|
SAXON_JAR=/usr/share/java/saxon9he.jar
|
|
|
|
XML=$1
|
|
|
|
|
|
|
|
if [ ! -f "$SAXON_JAR" ]; then
|
2020-05-01 07:51:52 -04:00
|
|
|
echo "Please update 'SAXON_JAR' variable value to location of SAXON jar"
|
2016-12-02 16:14:39 -05:00
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$XML" ]; then
|
|
|
|
echo "Error: Please enter xml file name that must be ckecked."
|
2020-05-01 07:51:52 -04:00
|
|
|
echo "Example: make_checks.sh phrase_es_ES.xml > comparison_result.xml"
|
2016-12-02 16:14:39 -05:00
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
java -jar "$SAXON_JAR" -xsl:make_checks.xslt -t "$XML"
|
|
|
|
|