From owner-freebsd-ports@FreeBSD.ORG Sat Mar 7 17:11:19 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 455D3106564A for ; Sat, 7 Mar 2009 17:11:19 +0000 (UTC) (envelope-from johans@stack.nl) Received: from mx0.stack.nl (mj0.stack.nl [IPv6:2001:610:1108:5010::187]) by mx1.freebsd.org (Postfix) with ESMTP id 0505D8FC1A for ; Sat, 7 Mar 2009 17:11:19 +0000 (UTC) (envelope-from johans@stack.nl) Received: by mx0.stack.nl (Postfix, from userid 65534) id 124912B34EF; Sat, 7 Mar 2009 18:11:18 +0100 (CET) X-Spam-DCC: : X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on hammer.stack.nl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Relay-Country: Received: from mud.stack.nl (mud.stack.nl [IPv6:2001:610:1108:5011:230:48ff:fe12:2794]) by mx0.stack.nl (Postfix) with ESMTP id 2FF722B34EA for ; Sat, 7 Mar 2009 18:11:16 +0100 (CET) Received: by mud.stack.nl (Postfix, from userid 801) id 0AE1611444; Sat, 7 Mar 2009 18:11:16 +0100 (CET) Date: Sat, 7 Mar 2009 18:11:16 +0100 From: Johan van Selst To: freebsd-ports@freebsd.org Message-ID: <20090307171115.GA21225@mud.stack.nl> References: <20090307111040.2a00be66@scorpio> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20090307111040.2a00be66@scorpio> User-Agent: Mutt/1.5.19 (2009-01-14) Subject: Re: Using sed in a Makefile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2009 17:11:19 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Jerry wrote: > @${REINPLACE_CMD} -e 's|CONFIG_FILE=${CONFIG_FILE:-/etc/${SCRIPT_NAME}.conf}|CONFIG_FILE=${CONFIG_FILE:-/usr/local/etc/${SCRIPT_NAME}.conf}|g' ${WRKSRC}/${PORTNAME}.sh > > Syntax error: Unterminated quoted string ${..} will be interpreted by make - even when it is used between '..' which is probably not what you want here. If you want to use a litteral $-sign in your command, use $$ in the Makefile. Ciao, Johan --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iEYEAREIAAYFAkmyqrMACgkQaOElK32lxTuQbQCgslr0U67e+tmqypc7zIbHSqZU 534An0SRZ4YDUp0nLApbUzsa3KBYclA/ =8HUW -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--