summaryrefslogtreecommitdiff
path: root/m5475-atari-mint/fetchsrc
blob: 9396a4e153b34d9b5293e6466b3a713321ee4442 (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="https://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