#!/bin/sh

macosdir() {
    script="$0"
    cd "${script%/*}"
    while [ -L "$script" ]; do
        script=$(readlink "$script")
        case $script in */*) cd "${script%/*}";; esac
    done
    pwd -P
}

javadir="$(macosdir)/../Java"
exec java -jar "$javadir/AppleCommander-acx-@VERSION@.jar" "$@"
