Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2010 21:42:15 +0100
From:      Tijl Coosemans <tijl@coosemans.org>
To:        Eitan Adler <eitanadlerlist@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: help with sed for post-patch
Message-ID:  <201003212142.16336.tijl@coosemans.org>
In-Reply-To: <a0777e081003211314nd7e234bkeceb9a0ff912c7e8@mail.gmail.com>
References:  <a0777e081003211314nd7e234bkeceb9a0ff912c7e8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003212142.16336.tijl>