blob: bbe8f6bcd4be84f472c79fe3467c15cf76c3bba4 (
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}
return 1
fi
fi
|