Subject: Re: correct override for MASTER_SITES?
To: Matthias Scheler <tron@lyssa.owl.de>
From: Markus Illenseer <markus@core.de>
List: current-users
Date: 03/08/1998 17:53:02
> tron@lyssa:~>cat $FETCH_CMD
> #!/bin/sh
> FTPDIRS="/ftp/pub/unix /ftp/cdrom/*"
> . /etc/proxy
>
> for URL
> do
> FILENAME=`basename $URL`
> LOCAL=`find $FTPDIRS -type f -name $FILENAME | head -1`
> if [ "$LOCAL" = "" ]
> then
> /usr/bin/ftp $URL
> else
> echo "Using local file \"$LOCAL\"."
> ln -s $LOCAL
> fi
> done
Couldn't this "script" be incoporated into the Makefile, so that "make
fetch" would also look into local directories / servers?
--
Markus Illenseer