gluon/scripts/update.sh
Steffen Möller c728885553 bit of eye candy in script/update.sh
The separation by a new line helps to dissect potential error messages.
2016-03-22 12:42:57 +01:00

22 lines
438 B
Bash
Executable File

#!/bin/bash
set -e
. "$GLUONDIR"/scripts/modules.sh
for module in $GLUON_MODULES; do
echo
var=$(echo $module | tr '[:lower:]/' '[:upper:]_')
eval repo=\${${var}_REPO}
eval branch=\${${var}_BRANCH}
eval commit=\${${var}_COMMIT}
mkdir -p "$GLUONDIR"/$module
cd "$GLUONDIR"/$module
git init
git checkout $commit 2>/dev/null || git fetch $repo $branch
git checkout -B base $commit
git submodule update --init --recursive
done