On Wed, Dec 29, 2010 at 08:29:18AM -0500, Charles Marcus wrote:
> Hello,
>
> I was wondering if it is possible to 'include' the contents of a file in
> the mysql*.cf map files (although I guess if you can with these you can
> with others)...
Use make(1) (and/or if you miss Sendmail's .mc files, m4) to construct
the target file from multiple input files.
M4 = m4
mv = mv
.SUFFIXES: .cf .mc
.mc.cf:
${RM} [email protected]
${M4} $< > [email protected]
${MV} [email protected] $@
> The reason I ask is, it would be nice when changing auth databases
> (which I'm doing now), to just edit one file that contains the db access
> information (user, password, hosts, db_name), and have all of the other
> maps immediately pick up the change(s).
>
> Yes, I know I can change the contents of all of the files with a simple
> script, but I'm just curious if this can be done.
Postfix does not implement any "include" mechanisms.
--
Viktor.