#!/bin/sh

BASEDIR="/usr/local/share/hfsexplorer/lib"
if [ $? -ne 0 ]; then
    echo "WARNING: No dirname utility found!"
    echo "         Script will only work if invoked from its parent directory."
    BASEDIR="/usr/local/share/hfsexplorer/lib"
fi

java -cp "${BASEDIR}/../lib/hfsx.jar" org.catacombae.hfsexplorer.tools.ResourceViewer "$@"
