From: Peter Volkov <pva@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] How to pass list of paths to eclass?
Date: Thu, 13 Dec 2007 12:18:45 +0300 [thread overview]
Message-ID: <1197537525.6128.10.camel@camobap> (raw)
In-Reply-To: <1197361032.10214.17.camel@camobap>
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
Thank you all, for your responds.
Currently I see that the best approach is arrays. They provide required
functionality, clear syntax and easy upgrade path. Speaking about the
latter it is:
1. Modify eclass to use arrays:
for conffile in ${FONT_CONF[@]}; do
...
done
2. Modify ebuilds to use arrays.
-FONT_CONF="path1 path2"
+FONT_CONF=( "path1" "path2" )
3. Modify eclass, so that it works with path containing spaces inside:
-for conffile in ${FONT_CONF[@]}; do
+for conffile in "${FONT_CONF[@]}"; do
--
Peter.
[-- Attachment #2: Эта часть сообщения подписана цифровой подписью --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-12-13 9:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 8:17 [gentoo-dev] How to pass list of paths to eclass? Peter Volkov
2007-12-11 8:37 ` likewhoa
2007-12-11 8:44 ` Donnie Berkholz
2007-12-11 10:38 ` Roy Marples
2007-12-11 10:38 ` Roy Marples
2007-12-11 11:14 ` Peter Volkov
2007-12-11 11:33 ` Roy Marples
2007-12-12 2:31 ` [gentoo-dev] " Ryan Hill
2007-12-13 9:18 ` Peter Volkov [this message]
2007-12-13 9:41 ` [gentoo-dev] " Roy Marples
2007-12-13 10:17 ` Peter Volkov
2007-12-13 10:52 ` Roy Marples
2007-12-13 10:52 ` [gentoo-dev] " Steve Long
2007-12-13 11:34 ` Peter Volkov
2007-12-13 16:08 ` [gentoo-dev] " Steve Long
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=1197537525.6128.10.camel@camobap \
--to=pva@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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