Date: Wed, 13 Mar 2002 21:12:52 -0700 (MST) From: "M. Warner Losh" <imp@village.org> To: arch@freebsd.org Subject: Comments on sys.mk change to make /etc/make.conf optional Message-ID: <20020313.211252.132928159.imp@village.org>
next in thread | raw e-mail | index | archive | help
I'm posting this here because it is a fairly fundamental change to the
system. It makes /etc/make.conf optional, for shared environments
that might want to have different settings for different users. I
used __MAKE_CONF to try not to pollute things. This also lets people
like bde say "setenv __MAKE_CONF /dev/null" for extreme purity.
Comments?
Warner
Index: sys.mk
===================================================================
RCS file: /base/FreeBSD-CVS/src/share/mk/sys.mk,v
retrieving revision 1.56
diff -u -r1.56 sys.mk
--- sys.mk 2001/08/31 12:20:43 1.56
+++ sys.mk 2002/03/12 18:31:36
@@ -244,8 +244,9 @@
.endif
-.if exists(/etc/make.conf)
-.include </etc/make.conf>
+__MAKE_CONF?=/etc/make.conf
+.if exists(${__MAKE_CONF})
+.include "${__MAKE_CONF}"
.endif
.include <bsd.cpu.mk>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020313.211252.132928159.imp>
