From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WxzEv-0008EE-IZ for ptxdist@pengutronix.de; Fri, 20 Jun 2014 15:52:26 +0200 Received: by mail-wi0-f174.google.com with SMTP id bs8so847765wib.13 for ; Fri, 20 Jun 2014 06:52:18 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140620133721.GB16625@pengutronix.de> References: <20140620133721.GB16625@pengutronix.de> Date: Fri, 20 Jun 2014 15:52:18 +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="===============1924689822==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1924689822== Content-Type: multipart/alternative; boundary=f46d044282aa3e576704fc44cdd2 --f46d044282aa3e576704fc44cdd2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable hello, Thanks but it don't work , I will prepare a test rule & a test package for monday in order to test the different solutions & I will publish the log regards marc 2014-06-20 15:37 GMT+02:00 Michael Olbrich : > Hi, > > On Fri, Jun 20, 2014 at 03:05:43PM +0200, marc doz wrote: > > 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 > > $(call install_copy, foo, 0, 0, 0755, -, /AAA/foo$$1.bar) > > should work, at least with the current ptxdist. I'm not sure about > ptxdist-2012.03.0, that's rather old. What error do you get? Maybe you ne= ed > to escape it again (for make or shell). > > Michael > > -- > Pengutronix e.K. | = | > Industrial Linux Solutions | http://www.pengutronix.de/ = | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 = | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 = | > > -- > ptxdist mailing list > ptxdist@pengutronix.de > --f46d044282aa3e576704fc44cdd2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
hello,=C2=A0
Thanks but it don't work ,
=
I will prepare a test rule & a test package for monday i= n order to test the different solutions & I will publish the log
<= div>
regards
marc




2014-06-2= 0 15:37 GMT+02:00 Michael Olbrich <m.olbrich@pengutronix.de>= :
Hi,

On Fri, Jun 20, 2014 at 03:05:43PM +0200, marc doz wrote:
> I=E2=80=99m writing a recipe & I=E2=80=99m u= sing 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

$(call install_copy, foo, 0, 0, 0755, -, /AAA/foo$$1.bar)

should work, at least with the current ptxdist. I'm not sure about
ptxdist-2012.03.0, that's rather old. What error do you get? Maybe you = need
to escape it again (for make or shell).

Michael

--
Pengutronix e.K. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
Industrial Linux Solutions =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 | http://w= ww.pengutronix.de/ =C2=A0|
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 =C2=A0 =C2=A0|<= br> Amtsgericht Hildesheim, HRA 2686 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | Fax: = =C2=A0 += 49-5121-206917-5555 |

--
ptxdist mailing list
ptxdist@pengutronix.de

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