[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: isn't sed s,x,x, one big no-op?



On Fri, May 07, 2010 at 05:39:52PM +0800, jidanni@jidanni.org wrote:
> >>>>> "SJ" == Sven Joachim <svenjoac@gmx.de> writes:
> 
> SJ> Yes, actually you can do it at build time by using the configure option
> SJ> --program-transform-name.  Say you want grub to be named grub2 to
> SJ> distinguish it from grub-legacy, then you can run
> 
> SJ> $ ./configure --program-transform-name=s/grub/grub2/
> 
> SJ> and 00_header will have the transform line look like this
> 
> SJ> transform="s/grub/grub2/"
> 
> SJ> This somewhat obscure feature is not used in the Debian package,
> SJ> hence the no-ops.
> 
> Hmmm, then there is a bug in whatever preprocessor package they are
> using, that leaves such confusing no-ops when in fact nothing should be
> left at all perhaps...

ISTM that is much easier and more reliable to change one variable at
the beginning of the file than to change all the sed expressions
throughout the file...

.02

A

Attachment: signature.asc
Description: Digital signature


Reply to: