| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.310 2009/02/15 20:09:09 grobian Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.311 2009/02/18 08:05:52 mr_bones_ Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: eutils.eclass |
5 | # @ECLASS: eutils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # base-system@gentoo.org |
7 | # base-system@gentoo.org |
| 8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
8 | # @BLURB: many extra (but common) functions that are used in ebuilds |
| … | |
… | |
| 1821 | ) || die |
1821 | ) || die |
| 1822 | else |
1822 | else |
| 1823 | newbin "${tmpwrapper}" "${wrapper}" || die |
1823 | newbin "${tmpwrapper}" "${wrapper}" || die |
| 1824 | fi |
1824 | fi |
| 1825 | } |
1825 | } |
|
|
1826 | |
|
|
1827 | # @FUNCTION: prepalldocs |
|
|
1828 | # @USAGE: |
|
|
1829 | # @DESCRIPTION: |
|
|
1830 | # Compress files in /usr/share/doc which are not already |
|
|
1831 | # compressed, excluding /usr/share/doc/${PF}/html. |
|
|
1832 | # Uses the ecompressdir to do the compression. |
|
|
1833 | prepalldocs() { |
|
|
1834 | if [[ -n $1 ]] ; then |
|
|
1835 | ewarn "prepalldocs: invalid usage; takes no arguments" |
|
|
1836 | fi |
|
|
1837 | |
|
|
1838 | cd "${D}" |
|
|
1839 | [[ -d usr/share/doc ]] || exit 0 |
|
|
1840 | |
|
|
1841 | ecompressdir --ignore /usr/share/doc/${PF}/html |
|
|
1842 | ecompressdir --queue /usr/share/doc |
|
|
1843 | } |