[CMake] installation of properly line ended text files

Andreas Pakulat apaku at gmx.de
Fri Aug 24 05:30:58 EDT 2007


On 24.08.07 12:08:34, Dizzy wrote:
> On Friday 24 August 2007 11:48:27 Andreas Pakulat wrote:
> > Alternatively you could let your program be intelligent enough to guess
> > the lineending by checking wether its \r\n or just \n and adjust the
> > reading of the conf files apropriately.
> 
> The program is already able to deal with these files, the problem is that 
> being configuration files means the admin should be able to easily edit them. 

An admin that doesn't have a eol-aware editor shouldn't do
administration tasks anyway. I'd accept that statement for "normal"
Desktop users who might use notepad, but then again those people
seldomly search for a config file, they normally search for config
options in the application itself.

A workaround for what you want, would be to read the config file, change the
lineendings, write it to a temp file and then let cmake install that
temp file. (reading and writing can be done with cmake, but I don't know
the exact commands atm).

Andreas

-- 
So you're back... about time...


More information about the CMake mailing list