From: Jon Ringle <jon@ringle.org>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: Re: [ptxdist] [PATCH] install_dir: Allow one to specify an alternate root dir
Date: Wed, 1 Oct 2014 01:09:39 -0400 [thread overview]
Message-ID: <CAMwGMjyXG=veGzrgMSRn97ke0G3nfGqc_WsT=d0fZKRpXrEiyw@mail.gmail.com> (raw)
In-Reply-To: <20140930075325.GC24288@pengutronix.de>
[-- Attachment #1.1: Type: text/plain, Size: 784 bytes --]
On Tue, Sep 30, 2014 at 3:53 AM, Michael Olbrich <m.olbrich@pengutronix.de>
wrote:
> On Mon, Sep 29, 2014 at 08:25:38AM -0400, Jon Ringle wrote:
> > On Mon, Sep 29, 2014 at 5:42 AM, Michael Olbrich <
> m.olbrich@pengutronix.de>
> > wrote:
>
> how about this (untested, but I thin you get the idea):
>
> rootdir="${root_dir#/}/"
>
> if [ "${root_dir}" != "${root_dir%/}" ]; then
> bailout: must be absolute
> fi
> ...
> local file="$(for dir in "${pkg_pkg_dir}"${root_dir:-/,/usr/}${lib_dir}; do
>
I was unable to get brace expansion to work properly inside of a variable
substitution.
> ...
>
> So either use ${root_dir}/lib or /lib,/usr/lib
>
The v3 patch I'm sending will search ${root_dir}/lib and
${root_dir}/usr/lib (where ${root_dir} could be an empty string)
Jon
[-- Attachment #1.2: Type: text/html, Size: 1497 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2014-10-01 5:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-26 21:46 jon
2014-09-27 9:08 ` Guillermo Rodriguez Garcia
2014-09-27 21:14 ` Jon Ringle
2014-09-29 9:42 ` Michael Olbrich
2014-09-29 12:25 ` Jon Ringle
2014-09-30 7:53 ` Michael Olbrich
2014-10-01 5:09 ` Jon Ringle [this message]
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='CAMwGMjyXG=veGzrgMSRn97ke0G3nfGqc_WsT=d0fZKRpXrEiyw@mail.gmail.com' \
--to=jon@ringle.org \
--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