tech-pkg archive

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

Re: SUBST_SED and newline?



What about
SUBST_SED.xxx+= s/ab/a\\${.newline}b/g
?
It works fine and is quite easy to manage.
Fulvio

From: "OBATA Akio" <obache%netbsd.org@localhost>
Subject: Re: SUBST_SED and newline?
Date: Mon, 07 Dec 2009 14:07:37 +0900

> On Sun, 06 Dec 2009 23:18:16 +0900, Georg Schwarz
> <georg.schwarz%freenet.de@localhost> wrote:
> 
>> Is it possible to insert a newline into a file using SUBST_SED?
> 
> Probably... sed requre bare newline, but it's hard to put it in
> Makefile...
> 
> How about put such a sed script in files/xxx.sed, and
> SUBST_SED.xxx+=       -f ${FILESDIR}/xxx.sed
> 
> If you want to insert between 'a' and 'b',
> contents of xxx.sed are:
> s/ab/a\
> b/g
> 
> -- 
> "Of course I love NetBSD":-)
> OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index