picard 404 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash


script_args=()
while [ $OPTIND -le "$#" ]
do
    # fetch the -Xmx option for java machine
    if getopts X: option
    then
        case $option
        in
            X) JAVAOPTS="-X$OPTARG";;
        esac
    else
        # paste all the rest of the command line
        script_args+=("${!OPTIND}")
        ((OPTIND++))
    fi
done

java $JAVAOPTS -jar /opt/picard.jar ${script_args[@]}