FS-9805: Created script to compare XML traslation files with phrase_en.xml

This commit is contained in:
Sergey Safarov
2016-12-02 16:14:39 -05:00
parent 89063a1a4c
commit 26aa8531fe
3 changed files with 82 additions and 0 deletions

17
docs/phrase/make_checks.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
SAXON_JAR=/usr/share/java/saxon9he.jar
XML=$1
if [ ! -f "$SAXON_JAR" ]; then
echo "Please update 'SAXON_JAR' varaiable value to location of SAXON jar"
exit -1
fi
if [ -z "$XML" ]; then
echo "Error: Please enter xml file name that must be ckecked."
echo "Exmple: make_checks.sh phrase_es_ES.xml > comparison_result.xml"
exit -1
fi
java -jar "$SAXON_JAR" -xsl:make_checks.xslt -t "$XML"