summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorperry <perry@NetBSD.org>2009-03-24 13:53:21 +0000
committerperry <perry@NetBSD.org>2009-03-24 13:53:21 +0000
commitf113e91b18efb7e5dde91c87cfda48138a4d77d1 (patch)
tree2659a1d663df667081fdcba45c22003254f94622 /usr.bin
parent8567f2b149c17cc7a5056ebfed747a57e52d550f (diff)
per dholland, put back MAKE_VERSION for the benefit of third party users.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index ed1351ffb7f..a3d7b88dd9d 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $ */
+/* $NetBSD: main.c,v 1.170 2009/03/24 13:53:21 perry Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.170 2009/03/24 13:53:21 perry Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
@@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $");
+__RCSID("$NetBSD: main.c,v 1.170 2009/03/24 13:53:21 perry Exp $");
#endif
#endif /* not lint */
#endif
@@ -830,6 +830,9 @@ main(int argc, char **argv)
Var_Set(".CURDIR", curdir, VAR_GLOBAL, 0);
Var_Set("MACHINE", machine, VAR_GLOBAL, 0);
Var_Set("MACHINE_ARCH", machine_arch, VAR_GLOBAL, 0);
+#ifdef MAKE_VERSION
+ Var_Set("MAKE_VERSION", MAKE_VERSION, VAR_GLOBAL, 0);
+#endif
Var_Set(".newline", "\n", VAR_GLOBAL, 0); /* handy for :@ loops */
/*