-
Notifications
You must be signed in to change notification settings - Fork 4
/
update_touchterrain.sh
24 lines (18 loc) · 1.16 KB
/
update_touchterrain.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
#!/bin/bash
# updates TouchTerrain from https://github.com/ChHarding/TouchTerrain_for_CAGEO
# Author: CH
# Date: Feb. 10, 2021
# This updates the repo and rebuilds the touchterrain module. If you have worked with a notebook
# called TouchTerrain_standalone_jupyter_notebook.ipynb, it will be overwritten by the update.
# You should have renamed your notebook but as a precaution, I've made a back up called
# TouchTerrain_standalone_jupyter_notebook.ipynb.old that you can use to rescue your
# notebook by renaming it to something like TouchTerrain_my_name.ipynb and running it
# after the update
cp /TouchTerrain/standalone/TouchTerrain_standalone_jupyter_notebook.ipynb /TouchTerrain/standaloneTouchTerrain_standalone_jupyter_notebook.ipynb.old
echo "TouchTerrain_standalone_jupyter_notebook.ipynb has been renamed to TouchTerrain_standalone_jupyter_notebook.ipynb.old"
echo "updating touchterrain module from github"
git --work-tree=/TouchTerrain/standalone --git-dir=/TouchTerrain/standalone/.git pull origin master
echo "building and installing updated touchterrain module"
cd /TouchTerrain/standalone
pip install .
echo "Done! Use ./run_touchterrain.sh to start jupyter"