#!/bin/sh

BINDIR=`dirname $0`
JAVA_ARGS=""
ARGS=""

# grab the -Dinviter if it's specified
while [ ! -z "$1" ] ; do
    case $1 in
    -D*)
        JAVA_ARGS="$JAVA_ARGS $1"
        shift
        ;;
    *)
        ARGS="$ARGS $1"
        shift
        ;;
    esac
done

$BINDIR/runjava $JAVA_ARGS com.threerings.micasa.client.MiCasaApp $ARGS
