source: gs3-extensions/selfcontained-mvn/trunk/SETUP.sh@ 36441

Last change on this file since 36441 was 36441, checked in by davidb, 20 months ago

Initial set of files for getting going with Maven

File size: 581 bytes
Line 
1
2package_name="Apache Maven"
3installed_dir=apache-maven
4
5full_installed_dir="$PWD/$installed_dir"
6
7OS_ALLCAPS=`uname | tr 'a-z' 'A-Z'`
8
9if test ! -d "$full_installed_dir" ; then
10 echo "" >&2
11 echo "In seting up $package_name, did not find directory:" >&2
12 echo " $full_installed_dir" >&2
13 echo "" >&2
14 echo "Have you run ./PREPARE-${OS_ALLCAPS}.sh?" >&2
15 echo "Exiting..." >&2
16 echo "" >&2
17 return
18fi
19
20MAVEN_HOME="$full_installed_dir" ; export MAVEN_HOME
21PATH="$MAVEN_HOME/bin:$PATH" ; export PATH
22
23echo + "Set MAVEN_HOME and updated PATH"
Note: See TracBrowser for help on using the repository browser.