From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Wxyf3-0005tk-W1 for ptxdist@pengutronix.de; Fri, 20 Jun 2014 15:15:36 +0200 Received: by mail-wi0-f182.google.com with SMTP id bs8so788016wib.9 for ; Fri, 20 Jun 2014 06:15:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140620130830.GA29329@omega> References: <20140620130830.GA29329@omega> Date: Fri, 20 Jun 2014 15:15:16 +0200 Message-ID: From: marc doz Subject: Re: [ptxdist] how to escape $ in a rule ? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1607375352==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1607375352== Content-Type: multipart/alternative; boundary=047d7b5d2deacc942c04fc4448ba --047d7b5d2deacc942c04fc4448ba Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, no AAA/foo$1.bar give AAA/foo.bar no AAA/foo\$1.bar give AAA/foo\.bar Marc 2014-06-20 15:08 GMT+02:00 Alexander Aring : > On Fri, Jun 20, 2014 at 03:05:43PM +0200, marc doz wrote: > > Hello, > > > > > > I=E2=80=99m writing a recipe & I=E2=80=99m using install_copy & install= _tree function in > my > > recipe foo.make > > > > $(call install_copy, foo, 0, 0, 0755, $(FOO_DIR)/AAA/foo$1.bar, > > /AAA/foo$1.bar) > > > > $(call install_tree, foo, 0, 0, 0755, $(FOO_DIR)/AAA/, /AAA/) > > > > > > I would like to avoid the substitution of $1 because the file name that= I > > would like embed is really foo$1.bar & ptxdist try to copy foo.bar wit= h > > install_copy & install_tree.. > > > > > > Do you know a way for escaping the $ ? > > > > > > $$ don=E2=80=99t seem work > > > > does work \$ ? > > - Alex > > -- > ptxdist mailing list > ptxdist@pengutronix.de > --047d7b5d2deacc942c04fc4448ba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

no=C2=A0AAA/foo$1.= bar give=C2=A0AAA/foo.bar
no=C2=A0AAA/foo\$1.bar give=C2=A0AAA/foo\.bar

Marc


2014-06-20 15= :08 GMT+02:00 Alexander Aring <alex.aring@gmail.com>:
=
On Fri, Jun 20, 2014 at 03:05:43PM +0200, marc doz wrote: > Hello,
>
>
> I=E2=80=99m writing a recipe & I=E2=80=99m using install_copy &= ; install_tree function in my
> recipe foo.make
>
> $(call install_copy, foo, 0, 0, 0755, $(FOO_DIR)/AAA/foo$1.bar,
> /AAA/foo$1.bar)
>
> $(call install_tree, foo, 0, 0, 0755, $(FOO_DIR)/AAA/, /AAA/)
>
>
> I would like to avoid the substitution of $1 because the file name tha= t I
> would like embed is really foo$1.bar =C2=A0& ptxdist try to copy f= oo.bar with
> install_copy & install_tree..
>
>
> Do you know =C2=A0a way for escaping the $ ?
>
>
> $$ don=E2=80=99t seem work
>

does work \$ ?

- Alex

--
ptxdist mailing list
ptxdist@pengutronix.de

--047d7b5d2deacc942c04fc4448ba-- --===============1607375352== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1607375352==--