# -*- sh -*-

# Ensure $srcdir set correctly.
test -f $srcdir/defs || {
   echo "defs: installation error" 1>&2
   exit 1
}

# If srcdir is relative, we need to modify it.
case "$srcdir" in
/* | [A-Za-z]:\\*) ;;
*) srcdir=`cd $srcdir && pwd` ;;
esac

progname=`echo "$0" | sed 's%^.*/%%'`                                          

export PANDORA_HOME="../src"
export GUILE_LOAD_PATH="$srcdir/../src"

pandora="../src/pandora"

# See how redirections should work.  User can set VERBOSE to see all
# output.
test -z "$VERBOSE" && {
   exec > /dev/null 2>&1
}

test -z "$VERBOSE" || {
   pandora="$pandora -vvv"
}

echo "=== Running $progname"
