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