Remove building with NOCRYPTO option
[minix3.git] / gnu / dist / fetch.sh
blob4a2902b86cddd30da642e07c9f7d66382789a4e1
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 - TEXINFO
14 URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/texinfo-4.8.tar.bz2"
15 BACKUP_URL="ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.8.tar.bz2"
17 # Fetch sources if not available
18 if [ ! -d texinfo ];
19 then
20 if [ ! -f texinfo-4.8.tar.bz2 ]; then
21 $FETCH $URL
22 if [ $? -ne 0 ]; then
23 $FETCH $BACKUP_URL
27 tar -xjf texinfo-4.8.tar.bz2 && \
28 cd texinfo-4.8 && \
29 cat ../../usr.bin/texinfo/patches/* | patch -p1 && \
30 cd - && \
31 mv texinfo-4.8 texinfo