Subject: Re: defaults file
To: Perry E. Metzger <>
From: Nathan J. Williams <>
List: tech-toolchain
Date: 02/06/2003 14:20:12
"Perry E. Metzger" <> writes:

> A lot of the time, I use the same arguments to to set
> defaults over and over again -- things that I do not want in my
> /etc/mk.conf file or which cannot be set in an mk.conf file.
> I am thinking of adding an /etc/build.conf file to the system that
> would get slurped in by if it existed -- this file could
> export a bunch of variables to control behavior. (The change
> is two lines.)

I hate global configuration files for tools. They're a hidden
dependancy on system state, and they tend to bite me when
another user uses the system or I want to do a "plain" build.

The program has no particular connection to the machine it's
running on; consider a source tree on a shared filesystem in a
development lab, for example.

Please don't do this. Write your own wrapper script and keep it
somewhere convenient for you. If you're feeling especially ambitious,
maybe make take an option to read a config file somewhere,
and then your wrapper script or alias can be very short.

I realize that there is prior art, in the form of /etc/mk.conf, but I
consider /etc/mk.conf to be 100% a bug, not a feature.

        - Nathan