Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2018 21:22:02 +0100
From:      Franco Fichtner <franco@lastsummer.de>
To:        Oliver Mahmoudi <o.mahmoudi@gmx.de>
Cc:        Douglas Thrift via freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: sed dollar sign substitution in Makefile
Message-ID:  <36D52952-24DA-4B12-9BF1-EE84D51B97F1@lastsummer.de>
In-Reply-To: <trinity-9151880c-a747-4215-9c88-f18a94c7a97e-1541535141073@3c-app-gmx-bs51>
References:  <trinity-9151880c-a747-4215-9c88-f18a94c7a97e-1541535141073@3c-app-gmx-bs51>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

> On 6. Nov 2018, at 9:12 PM, Oliver Mahmoudi <o.mahmoudi@gmx.de> wrote:
>=20
> Therefore, in Makefile I set: ${REINPLACE_CMD} 's|print $1|print $4|g' =
file_to_be_changed

In make commands you need to escape $ as $$ to be able to pass it to the =
shell.


Cheers,
Franco=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36D52952-24DA-4B12-9BF1-EE84D51B97F1>