On Mon, Mar 10, 2003 at 09:28:16AM +0100, Michael Bell wrote:
> sed is perhaps a little bit problematical because every vendor uses it's 

I am far from a sed expert, but thought sed was basically the same
everywhere. Hmmm.... I guess not...

Dare I even mention M4????

> own flavour. Another idea is to write a small Perlscript which reads a 
> configuration from a file and then reinstall all changed files (in this 
> case we have no problem with different seds). So we are waiting for 
> somebody who has a great idea, knows a good software or has some new 
> ideas for the above described solution.

I could write a perl script that does this, if you want.

One way would be to take a file with a list of options, eg.

--- cut ---
organisation: My organisation
country: AU
xyz: ssss
--- cut ---

That turns a file like this:

--- cut ---
My country is #country# and I work for #organisation#.
--- cut ---

into

--- cut ---
My country is AU and I work for My organisation.
--- cut ---

Is this all thats required, or is some extra intelligence needed?

If so, it should be easy to create additional variables automatically
based on the ones given ones. It would also be possible to add sanity
checking of the values, too.

Also note that I have not used @country@, to make it clear that these
variable substitutions do not happen at configure time.

The configure stuff is still useful (IMHO) for setting up fixed items,
like directory names.
--
Brian May <[EMAIL PROTECTED]>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
OpenCA-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to