1 |
>>>>> On Sun, 31 Aug 2014, Pacho Ramos wrote: |
2 |
|
3 |
> This tries to solve: |
4 |
> https://bugs.gentoo.org/show_bug.cgi?id=519682 |
5 |
|
6 |
- cp "${FILESDIR}/README.gentoo-${SLOT%/*}" "${T}"/README.gentoo || die |
7 |
+ eval echo $(cat "${FILESDIR}/README.gentoo-${SLOT%/*}") > "${T}"/README.gentoo || die |
8 |
|
9 |
Am I missing something, or will this destroy any formatting (like line |
10 |
breaks) within the file? |
11 |
|
12 |
> Looks to do the job but maybe there are shorter or saner ways of |
13 |
> doing it |
14 |
|
15 |
If the goal is to expand variables like PF, then I think a solution |
16 |
like the one indicated in comment #2 of above-mentioned bug would be |
17 |
safer, i.e. expand @PF@ etc. to the respective variables. This can be |
18 |
done with sed. |
19 |
|
20 |
Ulrich |