blob: 6a7b3b8b5b3a4c64a5f64f682404bd27afb7b1a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
set -x
# script to fetch toolchain source tar using ci.netsurf-browser.org as a cache
# Usage fetchsrc <target> <source> <upstream> <sha256sum> <output>
NSSRV="https://ci.netsurf-browser.org/toolchain/"
wget -q -O ${5} ${NSSRV}/${1}/${2}
if [ $? -ne 0 ];then
wget -q -O ${5} ${3}
if [ $? -ne 0 ];then
rm ${5}
exit 1
fi
fi
echo "${4} *${5}" | sha256sum --strict -c -
exit $?
|