Handle cases like lgrind
This commit is contained in:
parent
42ad82509d
commit
7f2c930088
@ -2,7 +2,7 @@
|
||||
|
||||
# Sample script to use with fetch-makefile: fetch all distfiles
|
||||
|
||||
# $OpenBSD: fetch-all,v 1.2 2000/03/27 02:16:48 espie Exp $
|
||||
# $OpenBSD: fetch-all,v 1.3 2000/12/19 15:10:37 espie Exp $
|
||||
#
|
||||
# Copyright (c) 2000 Marc Espie.
|
||||
#
|
||||
@ -26,21 +26,23 @@
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
file=`echo $1|sed -e "s,^${DIST_SUBDIR:-.}/,,"`
|
||||
dir=`dirname $1`
|
||||
file=`basename $1`
|
||||
check=`basename $1`
|
||||
mkdir -p $dir
|
||||
cd $dir
|
||||
for site in ${SITES}
|
||||
do
|
||||
if ftp ${site}$file
|
||||
then
|
||||
case `${CIPHER} <$file` in
|
||||
case `${CIPHER} <$check` in
|
||||
${CKSUM})
|
||||
echo "Fetch, ok: $@"
|
||||
exit 0;;
|
||||
*)
|
||||
echo "Fetch, bad checksum: $@ on ${site}"
|
||||
rm -f $file;;
|
||||
rm -f $1;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user