pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/fetch It's more informative to use absolute pathnam...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/99fe8115df2a
branches:  trunk
changeset: 523608:99fe8115df2a
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Jan 10 14:31:35 2007 +0000

description:
It's more informative to use absolute pathnames in error messages than
just ".".

diffstat:

 mk/fetch/fetch |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 7703700def00 -r 99fe8115df2a mk/fetch/fetch
--- a/mk/fetch/fetch    Wed Jan 10 14:28:08 2007 +0000
+++ b/mk/fetch/fetch    Wed Jan 10 14:31:35 2007 +0000
@@ -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 @@
        *)      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



Home | Main Index | Thread Index | Old Index