Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, jokey@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-doc/php-docs: ChangeLog php-docs-20071125.ebuild
Date: Sat, 01 Dec 2007 06:30:08
Message-Id: 20071201062549.GL11249@supernova
1 On 23:15 Thu 29 Nov , Markus Ullmann (jokey) wrote:
2 > 1.1 app-doc/php-docs/php-docs-20071125.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/php-docs-20071125.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/php-docs-20071125.ebuild?rev=1.1&content-type=text/plain
6
7 > src_install() {
8 > # the whole structure is too much to do with a simple dohtml *
9 > for x in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do
10
11 It should be safe at this point to use useful bash-3 features:
12
13 for x in {a..z}; do
14
15 > files="$(echo function.${x}*)"
16 > [[ -n ${files} ]] || continue;
17 >
18 > dohtml function.${x}*
19 > rm function.${x}*
20 > done
21 >
22 > # what's left will fit into a single dohtml *
23 > dohtml *.html
24 > mv * "${D}"/usr/share/doc/php-docs-${PVR}/html/ || die "bad mv"
25 > }
26 >
27 > pkg_postinst() {
28 > einfo "Creating symlink to PHP manual at /usr/share/php-docs"
29 > [[ -e ${ROOT}/usr/share/php-docs ]] && rm -f "${ROOT}"/usr/share/php-docs
30 > ln -s "${ROOT}"/usr/share/doc/php-docs-${PVR}/html "${ROOT}"/usr/share/php-docs
31
32 Why can't this be done in src_install()?
33
34 Thanks,
35 Donnie
36 --
37 gentoo-dev@g.o mailing list