summarylogtreecommitdiffstats
path: root/MIR
blob: b3f2f9a92a0a3ad446f2f756aa6ce67308e8d274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# convert --input and --output paths to absolute
args=()
while [ -n "$1" ]; do
    args+=("$1")
    case "$1" in
        --input | --output)
            shift
            if [ -z "$1" ]; then
                break
            fi
            args+=("$(realpath -m "$1")")
    esac
    shift
done

cd /usr/share/MIR
./MIR ${args[@]}