Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, gentoo-perl@l.g.o
Subject: Re: [gentoo-dev] Re: perl-module.eclass -- review - 2
Date: Mon, 02 Mar 2009 03:34:59
Message-Id: 20090302033455.GC1955@comet
In Reply to: [gentoo-dev] Re: perl-module.eclass -- review - 2 by Torsten Veller
1 On 12:28 Sat 28 Feb , Torsten Veller wrote:
2 > case "${EAPI:-0}" in
3 > 0|1)
4 > EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test src_unpack
5 > ;;
6 > *)
7 > EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install
8 > ;;
9 > esac
10
11 Maybe this is just me, but I prefer to reserve '*' cases for the
12 fallback when I don't understand what I'm given.
13
14 > find "${D}/${VENDOR_LIB}" -type f -a \( -name .packlist \
15 > -o \( -name '*.bs' -a -empty \) \) -delete
16 > find "${D}/${VENDOR_LIB}" -depth -mindepth 1 -type d -empty -delete
17
18 I'm curious how portable the find () construct is. Do you know?
19
20 > find "${D}" -type f -not -name '*.so' | while read f ; do
21 > if file "${f}" | grep -q -i " text" ; then
22 > if grep -q "${D}" "${f}" ; then ewarn "QA: File contains a temporary path ${f}" ; fi
23 > sed -i -e "s:${D}:/:g" "${f}" || die
24
25 Could you just use dosed here?
26
27 --
28 Thanks,
29 Donnie
30
31 Donnie Berkholz
32 Developer, Gentoo Linux
33 Blog: http://dberkholz.wordpress.com

Replies

Subject Author
[gentoo-dev] Re: perl-module.eclass -- review - 2 Torsten Veller <ml-en@××××××.net>