public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] How to pass list of paths to eclass?
@ 2007-12-11  8:17 Peter Volkov
  2007-12-11  8:37 ` likewhoa
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Peter Volkov @ 2007-12-11  8:17 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

Hello.

Some eclasses (kernel-2, font) use variable to pass space separated PATH
to patch or fontconfig files from ebuild to eclass. In ebuild we use:

FONT_CONF="path1 path2"

Then eclasses use the variable:

for conffile in ${FONT_CONF}; do
	...
done

The problem with this doesn't work if path{1,2} contain spaces. The
solution I'm thinking about is to you arrays:

FONT_CONF=("path1" "path2")

for conffile in "${FONT_CONF[@]}"; do 
	...
done

But is this good idea? Are there better?

-- 
Peter.

[-- Attachment #2: Эта часть сообщения подписана цифровой подписью --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-12-13 16:26 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [gentoo-dev] " Peter Volkov
2007-12-13  9:41   ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox