aboutsummaryrefslogtreecommitdiff
path: root/platforms-wget.sh
blob: 7a9613f2e936b14367b570337e5205ca1ad5d197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/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=(
	juno32-latest-busybox-uboot.zip
	juno32-lsk-busybox-uboot.zip
	juno32-latest-oe-uboot.zip
	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-uboot.zip
	tc2-latest-oe-uboot.zip
	tc2-lsk-android-uboot.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