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

# Source functions library
. /usr/share/java-utils/java-functions

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

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

# Configuration
# Command line client
#MAIN_CLASS=org.walluck.oscar.client.Main
# GUI client
MAIN_CLASS=org.walluck.oscar.components.Main
BASE_DIR=/usr/share/daim

# Set parameters
set_jvm
CLASSPATH=$(build-classpath bcmail bcprov bsf jakarta-commons-logging daim jython log4j xerces-j2 2>/dev/null)
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run "$@"
