kernel: trap-dependent state restore, trace fixes
[minix.git] / gnu / dist / fetch.sh
blob76af90e126d2b58b84fefda1b9f64722efc7ddf8
1 #!/bin/sh
3 # Make sure we're in our directory (i.e., where this shell script is)
4 echo $0
5 cd `dirname $0`
7 # Configure fetch method
8 URL="http://www.minix3.org/distfiles-minix/make-3.80.tar.bz2"
9 BACKUP_URL="ftp://ftp.gnu.org/gnu/make/make-3.80.tar.bz2"
10 FETCH=wget
11 which curl >/dev/null
12 if [ $? -eq 0 ]; then
13 FETCH="curl -O -f"
16 # Fetch sources if not available
17 if [ ! -d gmake ];
18 then
19 if [ ! -f make-3.80.tar.bz2 ]; then
20 $FETCH $URL
21 if [ $? -ne 0 ]; then
22 $FETCH $BACKUP_URL
26 tar -xjf make-3.80.tar.bz2 && \
27 mv make-3.80 gmake