-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·30 lines (26 loc) · 926 Bytes
/
install.sh
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
#!/bin/bash
name=`hostname`
python setup.py clean
if [ $name = "mitchell" ];then
echo "mitchell"
python setup.py config_fc --fcompiler=intelem install --prefix="~/local" sdist
# python setup.py config_fc --fcompiler=gnu95 install --prefix="~/local" sdist
elif [ $name = "Sing-Sing" ];then
echo "sing-sing"
python setup.py install --prefix="~/usr" sdist
elif [ $name = "Anyer" ];then
echo "Anyer"
python setup.py install --prefix="~/usr" sdist
elif [ $name = "Nora" ];then
echo "Nora"
python setup.py install --prefix="~/usr" sdist
elif [ $name = "arjuna.mps.ohio-state.edu" ];then
echo "arjuna"
echo "JAVELIN does not work in logon macihne, switch to a node"
elif [ `echo ${name} | grep -c "node"` -eq 1 ]; then
echo "arjuna node"
python setup.py config_fc --fcompiler=intelem install --prefix="~/local" sdist
else
echo "Others"
python setup.py install --user
fi