-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_failtools.sh
29 lines (24 loc) · 1.02 KB
/
start_failtools.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
#!/bin/bash
# This is a startup script for lsdtailtools
# It clones the lsdtailtools repository into the lsdtailtools directory
# it then builds the code from there.
# Author: SMM
# Date: 17/12/2020
# clone or pull the repo, depending on what is in there
# check if the files have been cloned
if [ -d /LSDTopoTools/lsdfailtools ]
then
echo "The lsdfailtools repository exists, updating to the latest version."
git --work-tree=/LSDTopoTools/lsdfailtools --git-dir=/LSDTopoTools/lsdfailtools/.git pull origin master
else
echo "Cloning the LSDTopoTools2 repository"
git clone https://github.com/LSDtopotools/lsdfailtools.git /LSDTopoTools/lsdfailtools
fi
# Change the working directory to that of /LSDTopoTools/lsdfailtools
echo "I am going to try to build LSDTopoTools2."
cd /LSDTopoTools/lsdfailtools
echo "I am going to install failtools:"
pip install .
echo "You are ready to run some landlide prediction. "
echo "Please see the documentation in the readme at"
echo "https://github.com/LSDtopotools/lsdfailtools"