diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-05-21 11:13:08 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-05-21 11:13:08 +0300 |
commit | e74908bf21e2f09da81b14829267e8d9187d8a48 (patch) | |
tree | 8a93c76e1d7727d06c49d90563848c74693ff8ae | |
parent | d9bf5aac079f570a5138078fc48e4a223d1ebd36 (diff) | |
parent | fefa5fb09a69732b74b499d26b47418364d19fe6 (diff) |
[merge] Revamp BUILD_COPYCAT support (get stuff from snapshots.linaro.org).
-rw-r--r-- | build-scripts/helpers | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers index d1d7e73..b6c5041 100644 --- a/build-scripts/helpers +++ b/build-scripts/helpers @@ -70,9 +70,19 @@ function get_tarball_version { #echo `get_version binutils-2.20.1.tar.bz2` # 2.20.1 +# +# Download another builds's artifacts, as if they were +# produced by this build. Used for testing, trigger by BUILD_COPYCAT +# build config setting. +# download_another_build () { + local baseurl + if ! echo "$1" | grep '://' >/dev/null; then + baseurl="http://snapshots.linaro.org/android/$1" + else + baseurl=$1 + fi local dir=out/target/product/$TARGET_PRODUCT - local baseurl="http://android-build.linaro.org/builds/$1" mkdir -p $dir pushd $dir wget --quiet "$baseurl/target/product/$TARGET_PRODUCT/boot.tar.bz2" |