From 39f6b30d1d5ec1e5da78b69e1e3bebfdbe233f6b Mon Sep 17 00:00:00 2001 From: rillig Date: Wed, 10 Jan 2007 14:31:35 +0000 Subject: It's more informative to use absolute pathnames in error messages than just ".". --- mk/fetch/fetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/fetch/fetch b/mk/fetch/fetch index 034d1fd4b25..054adc9858e 100755 --- a/mk/fetch/fetch +++ b/mk/fetch/fetch @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: fetch,v 1.6 2006/08/03 14:02:58 jlam Exp $ +# $NetBSD: fetch,v 1.7 2007/01/10 14:31:35 rillig Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -142,6 +142,9 @@ while ${TEST} $# -gt 0; do *) break ;; esac done + +fetchdir=`cd $fetchdir && exec pwd` + if ${TEST} -n "$checksum" -a -z "$distinfo"; then ${ECHO} 1>&2 "$self: \`\`-c'' requires \`\`-f distinfo''." exit 1 -- cgit v1.2.3