source: gs3-extensions/selfcontained-cmake/trunk/SETUP.sh@ 37492

Last change on this file since 37492 was 37492, checked in by davidb, 14 months ago

Initial cut at files

File size: 573 bytes
Line 
1
2package_name="CMake"
3cmake_dir=cmake3-linux-64bit
4
5full_cmake_dir="$PWD/$java_dir"
6
7OS_ALLCAPS=`uname -s | sed 's/_.*$//' | tr 'a-z' 'A-Z'`
8
9if test ! -d "$full_cmake_dir" ; then
10 echo "" >&2
11 echo "In seting up $package_name, did not find directory:" >&2
12 echo " $full_cmake_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
20CMAKE_HOME="$full_cmake_dir" ; export CMAKE_HOME
21PATH="$CMAKE_HOME/bin:$PATH" ; export PATH
22
23echo + "Set CMAKE_HOME and updated PATH"
Note: See TracBrowser for help on using the repository browser.