FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 12-01-2007, 05:25 AM
Donnie Berkholz
 
Default gentoo-x86 commit in app-doc/php-docs: ChangeLog php-docs-20071125.ebuild

On 23:15 Thu 29 Nov , Markus Ullmann (jokey) wrote:
> 1.1 app-doc/php-docs/php-docs-20071125.ebuild
>
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/php-docs-20071125.ebuild?rev=1.1&view=markup
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/php-docs/php-docs-20071125.ebuild?rev=1.1&content-type=text/plain

> src_install() {
> # the whole structure is too much to do with a simple dohtml *
> 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

It should be safe at this point to use useful bash-3 features:

for x in {a..z}; do

> files="$(echo function.${x}*)"
> [[ -n ${files} ]] || continue;
>
> dohtml function.${x}*
> rm function.${x}*
> done
>
> # what's left will fit into a single dohtml *
> dohtml *.html
> mv * "${D}"/usr/share/doc/php-docs-${PVR}/html/ || die "bad mv"
> }
>
> pkg_postinst() {
> einfo "Creating symlink to PHP manual at /usr/share/php-docs"
> [[ -e ${ROOT}/usr/share/php-docs ]] && rm -f "${ROOT}"/usr/share/php-docs
> ln -s "${ROOT}"/usr/share/doc/php-docs-${PVR}/html "${ROOT}"/usr/share/php-docs

Why can't this be done in src_install()?

Thanks,
Donnie
--
gentoo-dev@gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 12:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org