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

# 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[@]}"