Nirbheek Chauhan kirjoitti:
On Sat, Sep 27, 2008 at 3:47 PM, Thomas Sachau <[EMAIL PROTECTED]> wrote:
So what about this one?

default_src_install() {
       if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
               emake DESTDIR="${D}" install || die "emake install failed"
       fi
       if [ -n "${DOCS}" ]; then
               dodoc ${DOCS} || die "dodoc failed"
       else
               # No die here because we don't know if any of these exist
               dodoc AUTHORS ChangeLog NEWS README
       fi
}

This seems alright fine to me

Cheers,

~Nirbheek Chauhan


It's not. If you want to have default DOCS then you should loop through the items and check with [[ -e ]] before trying to install them.

Regards,
Petteri

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to