2
0

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' variable 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 "Example: 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"