Remove building with NOCRYPTO option
[minix.git] / external / gpl2 / gmake / fetch.sh
bloba8929327678fdc1a21669d7b962436df1ec72030
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 FETCH=ftp
8 which curl >/dev/null
9 if [ $? -eq 0 ]; then
10 FETCH="curl -O -f"
13 # Configure fetch method - GMAKE
14 URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/make-3.81.tar.bz2"
15 BACKUP_URL="ftp://ftp.gnu.org/gnu/make/make-3.81.tar.bz2"
17 # Fetch sources if not available
18 if [ ! -d dist ];
19 then
20 if [ ! -f make-3.81.tar.bz2 ]; then
21 $FETCH $URL
22 if [ $? -ne 0 ]; then
23 $FETCH $BACKUP_URL
27 tar -xjf make-3.81.tar.bz2 && \
28 mv make-3.81 dist && \
29 cd dist && \
30 cat ../patches/* | patch -p 1 || true