diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-02-14 14:18:37 +0200 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-02-14 14:18:37 +0200 |
commit | f8ddcda07442aa8cdf14b65dd17c132fabcc44e6 (patch) | |
tree | fc0890cc1e3b08d243dda0de6a2daffcb8956121 /node | |
parent | c27bab400a84198b94b2ff72bad6ec6a9baabe56 (diff) |
Allow to fetch build config from git with BUILD_CONFIG_{REPO,BRANCH,FILENAME}.
Diffstat (limited to 'node')
-rwxr-xr-x | node/build | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -71,6 +71,22 @@ set -a eval "$CONFIGURATION" set +a +if [ -n "$BUILD_CONFIG_REPO" ]; then + echo "Fetching build config indirectly from git" + save_dir=$PWD + rm -rf /tmp/buildconf.$$ + mkdir -p /tmp/buildconf.$$ + cd /tmp/buildconf.$$ + git clone "$BUILD_CONFIG_REPO" + cd * + git co "$BUILD_CONFIG_BRANCH" + CONFIGURATION=$(cat "$BUILD_CONFIG_FILENAME") + cd $save_dir + set -a + eval $CONFIGURATION + set +a +fi + # Backward compatibility with SCRIPT_NAME if [ -n "$SCRIPT_NAME" ]; then BUILD_TYPE="$SCRIPT_NAME" |