#!/bin/sh
#
# manipulate any replica catalog implementation through a generic
# interface from the shell.
#
# $Id$
#

PEGASUS_CONFIG="`dirname "$0"`/pegasus-config"
eval `"$PEGASUS_CONFIG" --sh-dump`
. "$PEGASUS_SHARE_DIR/sh/java.sh"

# PEGASUS_HOME should not be set anymore
unset PEGASUS_HOME

# run java program
nice "${JAVA}" \
       "-Dpegasus.home.sysconfdir=$PEGASUS_CONF_DIR" \
       "-Dpegasus.home.bindir=$PEGASUS_BIN_DIR" \
       "-Dpegasus.home.sharedstatedir=$PEGASUS_SHARE_DIR" \
       "-Dpegasus.home.schemadir=$PEGASUS_SCHEMA_DIR" \
       $addon edu.isi.pegasus.planner.client.RCClient $args

