
package_name="Apache Maven"
installed_dir=apache-maven

full_installed_dir="$PWD/$installed_dir"

OS_ALLCAPS=`uname | tr 'a-z' 'A-Z'`

if test ! -d "$full_installed_dir" ; then
    echo "" >&2
    echo "In seting up $package_name, did not find directory:" >&2
    echo "  $full_installed_dir" >&2    
    echo "" >&2
    echo "Have you run ./PREPARE-${OS_ALLCAPS}.sh?" >&2    
    echo "Exiting..." >&2    
    echo "" >&2
    return
fi

MAVEN_HOME="$full_installed_dir" ; export MAVEN_HOME
PATH="$MAVEN_HOME/bin:$PATH" ;     export PATH

echo + "Set MAVEN_HOME and updated PATH"
