smartgears-distribution/distro/contents/scripts/load-env

15 lines
378 B
Plaintext

ghnhome=$1
if [ -z "$ghnhome" ]; then
if [ -z "$GHN_HOME" ]; then
echo -e "\nERROR:please specify the gHN directory (-g) or define the GHN_HOME env var." >&2
showhelp
echo -e "\naborting.\n"
exit 1
else
ghnhome=$GHN_HOME
fi
fi
export CLASSPATH=$CLASSPATH:"$ghnhome/lib/*"