Commit 0d487de4 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Sync with upstream (dmt)

parent 644425ba
Subproject commit 39cc32cbf479c8fafd80afdc64a1f57d41a5fd7b
Subproject commit e16076741754adb4da628fea2f670e64cee8d53c
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${DIR}/common.sh
. "${DIR}/common.sh"
# Setup the tools in ~/.local/bin
cd $DIR/../dmt || exit 1
cd "$DIR/../dmt" || exit 1
# Skip install if the version installed is the same and the tree is clean
HEAD="$(grep version= setup.py | awk -F\" '{print $2}')"
VERSION_INSTALLED="$(dmt --version 2>/dev/null | grep ^TAST | awk '{print $NF}')"
git status >/dev/null
TREE_CLEAN=$?
if [ ${TREE_CLEAN} -eq 0 -a "${HEAD}" == "${VERSION_INSTALLED}" ] ; then
GIT_OUTPUT=$(git status --porcelain)
if [ "${GIT_OUTPUT}" == "" ] ; then
TREE_DIRTY=0
else
TREE_DIRTY=1
fi
if [ ${TREE_DIRTY} -eq 0 ] && [ "${HEAD}" == "${VERSION_INSTALLED}" ] ; then
echo DMT tree is clean and already installed. Skipping DMT install...
exit 0
fi
......
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