1 |
Thomas de Grenier de Latour wrote: |
2 |
|
3 |
> On 2007/10/14, Drake Wyrm <wyrm@×××××.com> wrote: |
4 |
> |
5 |
>> Or, since you already have the command substitution there, how about: |
6 |
>> |
7 |
>> dodoc `find doc -maxdepth 1 -type f` |
8 |
> |
9 |
> Or even better, how about explicitly listing the relevant files |
10 |
> (ChangeLog, AUTHORS, FEATURES, THANKS, README, CodingStyle, TODO and |
11 |
> FAQ) and avoid the useless ones (Doxyfile, onphp.doxy.php and LICENSE)? |
12 |
> |
13 |
> And also, given the kind of files being there, what about moving |
14 |
> this block out of the "use doc" conditional? |
15 |
> |
16 |
The `useless' ones are the ones I would expect to get installed if I set doc |
17 |
USE flag (apart from LICENSE which already exists on the local machine.) |
18 |
|
19 |
I agree the others should be installed unconditionally, and it might be |
20 |
useful to have a standard list that dodoc (or some other fn) checks, eg: |
21 |
|
22 |
stdDocs=(ChangeLog AUTHORS FEATURES THANKS README CodingStyle TODO FAQ) |
23 |
|
24 |
stdDoc() { |
25 |
local d l=() |
26 |
for d in "${stdDocs[@]}"; do |
27 |
[[ -f $d ]] && l+=("$d") |
28 |
done |
29 |
((${#l[@]})) && dodoc "${l[@]}" |
30 |
} |
31 |
|
32 |
(assuming [[ $PWD = $S ]] or whichever is the right one for docs.) |
33 |
|
34 |
|
35 |
-- |
36 |
gentoo-dev@g.o mailing list |