From: | Peter Volkov <pva@g.o> |
---|---|
To: | gentoo-dev@l.g.o |
Subject: | [gentoo-dev] How to pass list of paths to eclass? |
Date: | Tue, 11 Dec 2007 08:22:19 |
Message-Id: | 1197361032.10214.17.camel@camobap |
1 | Hello. |
2 | |
3 | Some eclasses (kernel-2, font) use variable to pass space separated PATH |
4 | to patch or fontconfig files from ebuild to eclass. In ebuild we use: |
5 | |
6 | FONT_CONF="path1 path2" |
7 | |
8 | Then eclasses use the variable: |
9 | |
10 | for conffile in ${FONT_CONF}; do |
11 | ... |
12 | done |
13 | |
14 | The problem with this doesn't work if path{1,2} contain spaces. The |
15 | solution I'm thinking about is to you arrays: |
16 | |
17 | FONT_CONF=("path1" "path2") |
18 | |
19 | for conffile in "${FONT_CONF[@]}"; do |
20 | ... |
21 | done |
22 | |
23 | But is this good idea? Are there better? |
24 | |
25 | -- |
26 | Peter. |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] How to pass list of paths to eclass? | likewhoa <weboperative@×××××.com> |
Re: [gentoo-dev] How to pass list of paths to eclass? | Donnie Berkholz <dberkholz@g.o> |
Re: [gentoo-dev] How to pass list of paths to eclass? | Roy Marples <roy@×××××××.name> |
[gentoo-dev] Re: How to pass list of paths to eclass? | Ryan Hill <dirtyepic@g.o> |
Re: [gentoo-dev] How to pass list of paths to eclass? | Peter Volkov <pva@g.o> |