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