Commit 88c1c5e6 authored by Maxime Perrotin's avatar Maxime Perrotin
parents 73a03bdb be2f848e
......@@ -2,7 +2,24 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${DIR}/common.sh
# Setup opengeode in ~/.local/bin
cd $DIR/../opengeode || exit 1
# Skip install if the version installed is the same and the tree is clean
HEAD="$(grep _version_ opengeode/opengeode.py | head -1 | awk -F\' '{print $2}')"
VERSION_INSTALLED="$(opengeode --version 2>&1)"
git status >/dev/null
TREE_CLEAN=$?
if [ ${TREE_CLEAN} -eq 0 -a "${HEAD}" == "${VERSION_INSTALLED}" ] ; then
echo OpenGEODE tree is clean and already installed. Skipping OpenGEODE install...
exit 0
fi
# Unfortunately, the --upgrade DOES NOT ALWAYS WORK.
# Uninstall first...
echo y | pip2 uninstall opengeode
pip2 install --user --upgrade . || exit 1
# Add .local/bin to PATH
......
export DISABLE_TASTE_BANNER=1
TASTE_PATHS=$HOME/.bashrc.taste
PREFIX=$HOME/tool-inst
......
Subproject commit 1b8a6961e40105828f389fe76137a2ecc0176dfd
Subproject commit c6576bfa8221820714094cbece08fd4ab9bfcc2a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment