1 |
Nirbheek Chauhan kirjoitti: |
2 |
> On Sat, Sep 27, 2008 at 3:47 PM, Thomas Sachau <tommy@g.o> wrote: |
3 |
>> So what about this one? |
4 |
>> |
5 |
>> default_src_install() { |
6 |
>> if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
7 |
>> emake DESTDIR="${D}" install || die "emake install failed" |
8 |
>> fi |
9 |
>> if [ -n "${DOCS}" ]; then |
10 |
>> dodoc ${DOCS} || die "dodoc failed" |
11 |
>> else |
12 |
>> # No die here because we don't know if any of these exist |
13 |
>> dodoc AUTHORS ChangeLog NEWS README |
14 |
>> fi |
15 |
>> } |
16 |
> |
17 |
> This seems alright fine to me |
18 |
> |
19 |
> Cheers, |
20 |
> |
21 |
> ~Nirbheek Chauhan |
22 |
> |
23 |
|
24 |
It's not. If you want to have default DOCS then you should loop through |
25 |
the items and check with [[ -e ]] before trying to install them. |
26 |
|
27 |
Regards, |
28 |
Petteri |