diff options
-rwxr-xr-x | mk/fetch/fetch | 5 |
1 files changed, 4 insertions, 1 deletions
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 |