Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ulrich Mueller <ulm@g.o>
Subject: Re: Default src_install for EAPI-2 or following EAPI
Date: Sun, 5 Oct 2008 10:52:44 +0200
>>>>> On Tue, 30 Sep 2008, Petteri Räty wrote:

>>> dodoc ${DOCS} || die "dodoc failed"
>> This seems alright fine to me

> 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.

I'm not convinced that this is a good idea. Then you won't catch cases
where upstream removes or renames files.

Besides, dodoc already checks for -e by itself (and emits a warning if
the file does not exist).

So, maybe just do a 'dodoc "${DOCS}"' and omit the die? Then it won't
fail but the warning message would be preserved.

Ulrich


Replies:
Re: Default src_install for EAPI-2 or following EAPI
-- Robert Buchholz
References:
Re: Default src_install for EAPI-2 or following EAPI
-- Ulrich Mueller
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Thomas Sachau
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Bo Ørsted Andresen
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Nirbheek Chauhan
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Thomas Sachau
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Nirbheek Chauhan
Re: Re: Default src_install for EAPI-2 or following EAPI
-- Petteri Räty
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Default src_install for EAPI-2 or following EAPI
Next by thread:
Re: Default src_install for EAPI-2 or following EAPI
Previous by date:
Re: Re: proj/en/perl/outdated-cpan-packages.xml automatic update
Next by date:
Projects without a homepage, and valid contents of HOMEPAGE (per bug 239268)


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.