forked from edinburgh-university-OOSA/active_sensing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installGedi.bash
executable file
·69 lines (55 loc) · 1.7 KB
/
installGedi.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash -f
######################
# Scripts to install #
# GEDI software and #
# set up environemnt #
######################
# set up environment variables
export ARCH=`uname -m`
export PATH=$PATH:./:$HOME/bin/$ARCH:$HOME/bin/csh
export GEDIRAT_ROOT=$HOME/src/gedisimulator
export CMPFIT_ROOT=$HOME/src/cmpfit-1.2
export GSL_ROOT=/usr/local/lib
export LIBCLIDAR_ROOT=$HOME/src/libclidar
export HANCOCKTOOLS_ROOT=$HOME/src/tools
export HDF5_LIB=/apps/hdf5/1.8.15/patch1
envFile="$HOME/.bashrc"
echo "export ARCH=`uname -m`" >> $envFile
echo "export PATH=$PATH:./:$HOME/bin/$ARCH:$HOME/bin/csh" >> $envFile
echo "export GEDIRAT_ROOT=$HOME/src/gedisimulator" >> $envFile
echo "export CMPFIT_ROOT=$HOME/src/cmpfit-1.2" >> $envFile
echo "export GSL_ROOT=/usr/local/lib" >> $envFile
echo "export LIBCLIDAR_ROOT=$HOME/src/libclidar" >> $envFile
echo "export HANCOCKTOOLS_ROOT=$HOME/src/tools" >> $envFile
echo "export HDF5_LIB=/apps/hdf5/1.8.15/patch1" >> $envFile
# set up directory structure
if [ ! -e $HOME/src ];then
mkdir $HOME/src
fi
if [ ! -e $HOME/bin ];then
mkdir $HOME/bin
fi
if [ ! -e $HOME/bin/$ARCH ];then
mkdir $HOME/bin/$ARCH
fi
if [ ! -e $HOME/bin/csh ];then
mkdir $HOME/bin/csh
fi
pushd $HOME/src
wget https://www.physics.wisc.edu/~craigm/idl/down/cmpfit-1.2.tar.gz
tar -xvf cmpfit-1.2.tar.gz
popd
pushd $HOME/src
hg clone https://bitbucket.org/StevenHancock/libclidar
hg clone https://bitbucket.org/StevenHancock/tools
git clone https://bitbucket.org/StevenHancock/gedisimulator
programList="gediRat gediMetric mapLidar lvisBullseye"
cd $GEDIRAT_ROOT/
make clean
for program in $programList;do
make THIS=$program
make THIS=$program install
done
#cp *.csh $HOME/src/csh/
#cp *.bash $HOME/src/csh/
popd