Jpp  debug
the software that should make you happy
JConvert.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 script=${0##*/}
6 
7 # ------------------------------------------------------------------------------------------
8 #
9 # Auxiliary script to convert files.
10 #
11 # ------------------------------------------------------------------------------------------
12 
13 if [ -z $JPP_DIR ]; then
14  echo "Variable JPP_DIR undefined."
15  exit
16 fi
17 
18 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
19 
20 if do_usage $*; then
21  usage "$script (input file)+ <output file>"
22 fi
23 
24 if (( $# < 2 )); then
25  fatal "Invalid number of arguments."
26 fi
27 
28 set_array INPUT_FILES $argv[1,-2]
29 set_variable OUTPUT_FILE $argv[-1]
30 
31 JConvert \
32  -f "${INPUT_FILES[*]}" \
33  -o $OUTPUT_FILE