Commit 4f1a9b65 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Install buildsupport.

parent 713ec0c1
......@@ -37,3 +37,6 @@
[submodule "ellidiss-GUI"]
path = ellidiss-GUI
url = https://gitrepos.estec.esa.int/taste/ellidiss-release.git
[submodule "buildsupport"]
path = buildsupport
url = https://gitrepos.estec.esa.int/taste/buildsupport.git
Subproject commit dc42b3a10c0f9fa4186b2f08b0d6bd5291a74d5e
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${DIR}/common.sh
# Setup the tools in ~/.local/bin
cd $DIR/../buildsupport || exit 1
# Skip Ocarina building if tree is clean and version is identical
HEAD="$(git log --oneline | head -1 | cut -d' ' -f1)"
VERSION_INSTALLED="$(buildsupport -v 2>&1 | grep -A1 Based | tail -1 | tr -d '\012')"
git status >/dev/null
TREE_CLEAN=$?
if [ ${TREE_CLEAN} -eq 0 -a "${HEAD}" == "${VERSION_INSTALLED}" ] ; then
echo Buildsupport tree is clean and already installed. Skipping Buildsupport build...
exit 0
fi
make clean # ignore any errors here
make || exit 1
cp buildsupport ${PREFIX}/bin || exit 1
# Add Ocarina to PATH
PATH_CMD='export PATH=$PATH:'"${PREFIX}/bin"
UpdatePATH
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