Date: Wed, 21 Mar 2007 15:46:47 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: karol.kwiat@gmail.com Cc: freebsd-emulation@FreeBSD.org Subject: Re: [OT] Makefile magic [was: Re: linux-fonconfig-2.2.3_6 not X11BASE clean] Message-ID: <20070321154647.iq4avx8mpcsw84co@webmail.leidinger.net> In-Reply-To: <460141F0.6090000@gmail.com> References: <4601219B.402@gmail.com> <20070321143737.hcrklzpsqooocksc@webmail.leidinger.net> <460141F0.6090000@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Karol Kwiatkowski <karol.kwiat@gmail.com> (from Wed, 21 Mar =20
2007 15:32:16 +0100):
> Alexander Leidinger wrote:
>> You also added the backup file to the plist, just do an
>> inplace replacement without the backup (-i option).
>
> I'm probably missing something but I can't see how to do that. sed(1)
> mentions -i with zero-length extension. Then there are those lines in
> /usr/ports/Mk/bsd.port.mk:
>
> # Macro for doing in-place file editing using regexps
> REINPLACE_ARGS?=3D=09-i.bak
> REINPLACE_CMD?=3D=09${SED} ${REINPLACE_ARGS}
>
> and whatever I put in ${REINPLACE_CMD} line after -i option I get errors
> or different extensions.
-i'' or something like this IIRC...
> However, how about replacing ${INSTALL_DATA} with ${SED}? Patch attached.
This doesn't take care of chown and chgrp.
Bye,
Alexander.
--=20
A lack of planning on your part
does not constitute an emergency on my part.
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070321154647.iq4avx8mpcsw84co>
