#!/bin/sh
if [ "$1" = '' ];
then
    echo "Usage : hello-world.sh [your-name]"
fi
if [ "$JAVA_HOME" = '' ];
then
    echo -n "JAVA_HOME :"
    read JAVA_HOME
fi
if [ "$JAVA_HOME" = '' ];
then
    echo "JAVA_HOME= ???"
else
    if [ "$CLASSPATH" = '' ];
    then
        if [ "$REFLEX_HOME" = '' ];
        then
            export REFLEX_HOME=${0%/*}/../../..
        fi
        export REFLEX_LIB=`echo $REFLEX_HOME/lib/*.jar | tr " " :`
        export REFLEX_JAR=`echo $REFLEX_HOME/*.jar | tr " " :`
        export CLASSPATH=$REFLEX_JAR:$REFLEX_LIB
    fi
    java -Dwho="$1" org.inria.reflex.ReflexCLI run ${0%/*}/hello-world.xcl -c moduleweb1.1.cat
fi

