Skip to content
Permalink
93de43745e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 49 lines (41 sloc) 837 Bytes
#!/bin/bash
BASE_DIR=$(dirname $0)/..
DEP_DIR=$BASE_DIR/dependencies
#######################################
# variables
#######################################
#######################################
# functions
#######################################
function print_help {
echo "call saxon"
echo "usage: $0 [OPTIONS] STYLESHEET [-s:INPUT_FILE] [-o:OUTPUT_FILE] [...]"
echo
echo "OPTIONS:"
echo " -h | --help: print this help"
}
#######################################
# parse command line arguments
#######################################
while [[ $# > 0 ]]; do
key="$1"
case $key in
-h | --help)
print_help
exit 0
;;
-* )
echo "wrong syntax!"
print_help
exit 1
;;
*)
break
;;
esac
done
if [[ $# = 0 ]]; then
print_help
exit 1
fi
java -jar "$DEP_DIR/Stylesheets/lib/saxon9he.jar" $@