make_checks.sh 405 B

1234567891011121314151617
  1. #!/bin/sh
  2. SAXON_JAR=/usr/share/java/saxon9he.jar
  3. XML=$1
  4. if [ ! -f "$SAXON_JAR" ]; then
  5. echo "Please update 'SAXON_JAR' varaiable value to location of SAXON jar"
  6. exit -1
  7. fi
  8. if [ -z "$XML" ]; then
  9. echo "Error: Please enter xml file name that must be ckecked."
  10. echo "Exmple: make_checks.sh phrase_es_ES.xml > comparison_result.xml"
  11. exit -1
  12. fi
  13. java -jar "$SAXON_JAR" -xsl:make_checks.xslt -t "$XML"