From: | Peter Volkov <pva@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] How to pass list of paths to eclass? | ||
Date: | Thu, 13 Dec 2007 09:24:00 | ||
Message-Id: | 1197537525.6128.10.camel@camobap | ||
In Reply to: | [gentoo-dev] How to pass list of paths to eclass? by Peter Volkov |
1 | Thank you all, for your responds. |
2 | |
3 | Currently I see that the best approach is arrays. They provide required |
4 | functionality, clear syntax and easy upgrade path. Speaking about the |
5 | latter it is: |
6 | |
7 | 1. Modify eclass to use arrays: |
8 | |
9 | for conffile in ${FONT_CONF[@]}; do |
10 | ... |
11 | done |
12 | |
13 | 2. Modify ebuilds to use arrays. |
14 | |
15 | -FONT_CONF="path1 path2" |
16 | +FONT_CONF=( "path1" "path2" ) |
17 | |
18 | 3. Modify eclass, so that it works with path containing spaces inside: |
19 | |
20 | -for conffile in ${FONT_CONF[@]}; do |
21 | +for conffile in "${FONT_CONF[@]}"; do |
22 | |
23 | -- |
24 | Peter. |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
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? | Steve Long <slong@××××××××××××××××××.uk> |