#!/bin/sh
#
# harctoolbox script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
_prefer_jre=""
. /usr/share/java-utils/java-functions

# Source system prefs
if [ -f /etc/java/harctoolbox.conf ] ; then
  . /etc/java/harctoolbox.conf
fi

# Source user prefs
if [ -f $HOME/.harctoolboxrc ] ; then
  . $HOME/.harctoolboxrc
fi

# Configuration
MAIN_CLASS=org.harctoolbox.IrpMaster.IrpMaster
BASE_FLAGS=""
BASE_OPTIONS=""
BASE_JARS="harctoolbox antlr32-runtime DecodeIR ExchangeIR stringtemplate"
BASE_JARS="${BASE_JARS} beust-jcommander"


# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"
