#!/bin/bash url=http://snapshots.linaro.org/member-builds/armlt-platforms ci=https://ci.linaro.org/view/member-builds/job/armlt-platforms me=`basename "$0"` echo $me #if [ "$me" == "platforms-wget-release.sh" ] ; then if [[ "$me" == *"release"* ]] ; then url=${url}-release ci=${ci}-release fi num=$1 mkdir $num pushd $num files=( fvp32-latest-busybox-uboot.zip fvp32-lsk-busybox-uboot.zip fvp32-latest-oe-uboot.zip fvp-latest-busybox-uboot.zip fvp-lsk-busybox-uboot.zip fvp-latest-oe-debug.tar.xz fvp-latest-oe-uboot.zip fvp-lsk-android-debug.tar.xz fvp-lsk-android-uboot.zip fvp-uefi.zip juno-latest-busybox-uboot.zip juno-latest-oe-uboot.zip juno-lsk-android-uboot.zip juno-uefi.zip tc2-latest-busybox-bootmon.zip tc2-latest-oe-bootmon.zip tc2-lsk-android-bootmon.zip tc2-uefi.zip MD5SUMS ) for ((i=0;i<${#files[@]};++i)); do wget ${url}/${num}/${files[i]} done # Pull down the build log wget ${ci}/${num}/consoleText popd