2013-12-28 14:11:59 +00:00
|
|
|
#!/bin/bash
|
2013-12-28 13:54:49 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2014-01-02 14:16:32 +00:00
|
|
|
. "$1"/scripts/modules.sh
|
2013-12-28 13:54:49 +00:00
|
|
|
|
|
|
|
for module in $GLUON_MODULES; do
|
2013-12-28 14:31:11 +00:00
|
|
|
var=$(echo $module | tr '[:lower:]/' '[:upper:]_')
|
2014-01-02 14:16:32 +00:00
|
|
|
eval repo=\${${var}_REPO}
|
|
|
|
eval commit=\${${var}_COMMIT}
|
2013-12-28 20:35:16 +00:00
|
|
|
|
2013-12-31 16:03:39 +00:00
|
|
|
mkdir -p "$1"/$module
|
|
|
|
cd "$1"/$module
|
|
|
|
git init
|
|
|
|
|
2014-01-01 17:30:55 +00:00
|
|
|
git checkout $commit 2>/dev/null || git fetch $repo
|
2013-12-31 16:03:39 +00:00
|
|
|
git checkout -B base $commit
|
2013-12-28 13:54:49 +00:00
|
|
|
done
|