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 |
| All times are GMT. The time now is 01:52 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.