19 lines
334 B
Bash
Executable File
19 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. "$1"/modules
|
|
|
|
for module in $GLUON_MODULES; do
|
|
var=$(echo $module | tr '[:lower:]/' '[:upper:]_')
|
|
eval repo=\${MODULE_${var}_REPO}
|
|
eval commit=\${MODULE_${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
|