Date: Mon, 22 Mar 2010 07:38:55 +0100 From: Rainer Hurling <rhurlin@gwdg.de> To: Tijl Coosemans <tijl@coosemans.org> Cc: Eitan Adler <eitanadlerlist@gmail.com>, freebsd-ports@freebsd.org Subject: Re: help with sed for post-patch Message-ID: <4BA7107F.1050302@gwdg.de> In-Reply-To: <201003212142.16336.tijl@coosemans.org> References: <a0777e081003211314nd7e234bkeceb9a0ff912c7e8@mail.gmail.com> <201003212142.16336.tijl@coosemans.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 21.03.2010 21:42 (UTC+1) schrieb Tijl Coosemans: > On Sunday 21 March 2010 21:14:11 Eitan Adler wrote: >> I need to change >> set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib) >> to >> set(LIBRARY_OUTPUT_PATH libdata/lib) >> >> Here is what I have >> ${REINPLACE_CMD} -E 's/\$\{CMAKE_BINARY_DIR\}\/lib/libdata\/lib/' >> ${WRKSRC}/CMakeLists.txt >> >> how could I fix this? > > In a Makefile you have to replace $ by $$. > > ${REINPLACE_CMD} 's,$${CMAKE_BINARY_DIR}/lib,libdata/lib,' ${WRKSRC}/CMakeLists.txt and, as far as I understand, put "-e" between command and the rest (see Porters Handbook, chapter 4.4): ${REINPLACE_CMD} -e 's,$${CMAKE_BINARY_DIR}/lib,libdata/lib,' ${WRKSRC}/CMakeLists.txt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BA7107F.1050302>