On 2010-12-29 12:45 PM, Victor Duchovni wrote:
> On Wed, Dec 29, 2010 at 08:29:18AM -0500, Charles Marcus wrote:
>> 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} $...@.tmp
>               ${M4} $< > $...@.tmp
>               ${MV} $...@.tmp $@

>> 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.

Thanks for the confirmation Victor (and mouss)...

I've been meaning to learn how to use make files to automate things like
this, so maybe I'll have time after the holidays to do so...

Thanks

-- 

Best regards,

Charles

Reply via email to