gluon/scripts/update.sh
2014-01-02 15:16:32 +01:00

19 lines
331 B
Bash
Executable File

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