diff options
| author | joerg <joerg@NetBSD.org> | 2011-02-20 23:12:09 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2011-02-20 23:12:09 +0000 |
| commit | ea93a8729fd544ea7db4a75f3cd06c9471c8e28b (patch) | |
| tree | 53fb81a850eacf695094bd2caef3d23eeeed9112 /usr.bin/make/parse.c | |
| parent | 6d9bfea5bda57144fb5812b6b93ef32d08dcb646 (diff) | |
Use the current directory at start time for .PARSEDIR, if the filename
contains no /.
Diffstat (limited to 'usr.bin/make/parse.c')
| -rw-r--r-- | usr.bin/make/parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index bb12bfed289..2a903ea32ac 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.175 2011/02/20 20:17:35 dholland Exp $ */ +/* $NetBSD: parse.c,v 1.176 2011/02/20 23:12:09 joerg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -69,14 +69,14 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: parse.c,v 1.175 2011/02/20 20:17:35 dholland Exp $"; +static char rcsid[] = "$NetBSD: parse.c,v 1.176 2011/02/20 23:12:09 joerg Exp $"; #else #include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: parse.c,v 1.175 2011/02/20 20:17:35 dholland Exp $"); +__RCSID("$NetBSD: parse.c,v 1.176 2011/02/20 23:12:09 joerg Exp $"); #endif #endif /* not lint */ #endif @@ -2208,7 +2208,7 @@ ParseSetParseFile(const char *filename) slash = strrchr(filename, '/'); if (slash == NULL) { - Var_Set(".PARSEDIR", ".", VAR_GLOBAL, 0); + Var_Set(".PARSEDIR", curdir, VAR_GLOBAL, 0); Var_Set(".PARSEFILE", filename, VAR_GLOBAL, 0); } else { len = slash - filename; |
