mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: marc doz <doz.marc@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] how to escape $ in a rule ?
Date: Fri, 20 Jun 2014 15:52:18 +0200	[thread overview]
Message-ID: <CAP+MAyxunYR8RukLJQK0h2Oo3DynZRNBNhwzLVERsuTPE5MrDA@mail.gmail.com> (raw)
In-Reply-To: <20140620133721.GB16625@pengutronix.de>


[-- Attachment #1.1: Type: text/plain, Size: 1556 bytes --]

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 <m.olbrich@pengutronix.de>:

> Hi,
>
> On Fri, Jun 20, 2014 at 03:05:43PM +0200, marc doz wrote:
> > I’m writing a recipe & I’m 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 with
> > install_copy & install_tree..
> >
> >
> > Do you know  a way for escaping the $ ?
> >
> >
> > $$ don’t 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.                           |                             |
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 2534 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-06-20 13:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20 13:05 marc doz
2014-06-20 13:08 ` Alexander Aring
2014-06-20 13:15   ` marc doz
2014-06-20 13:37 ` Michael Olbrich
2014-06-20 13:52   ` marc doz [this message]
2014-06-23 11:46     ` marc doz
2014-06-23 13:20       ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP+MAyxunYR8RukLJQK0h2Oo3DynZRNBNhwzLVERsuTPE5MrDA@mail.gmail.com \
    --to=doz.marc@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox