diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-05-26 08:32:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-05-26 08:32:39 +0000 |
commit | 5ee7f03dd5d37d62bde329a0ba88dddfc08e11bb (patch) | |
tree | 2ff0dd10310aeaddf48134c25cea0e86853ab789 /eclass | |
parent | Bump (diff) | |
download | gentoo-2-5ee7f03dd5d37d62bde329a0ba88dddfc08e11bb.tar.gz gentoo-2-5ee7f03dd5d37d62bde329a0ba88dddfc08e11bb.tar.bz2 gentoo-2-5ee7f03dd5d37d62bde329a0ba88dddfc08e11bb.zip |
clean out generated "Directory Reference" man pages as they offer no real value #486754
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 180e4be0d399..9eb036e1bb1e 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.670 2015/05/25 08:41:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.671 2015/05/26 08:32:39 vapier Exp $ # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1576,6 +1576,13 @@ gcc_do_make() { cd "${CTARGET}"/libstdc++-v3 emake doxygen-man || ewarn "failed to make docs" fi + # Clean bogus manpages. #113902 + find -name '*_build_*' -delete + # Blow away generated directory references. Newer versions of gcc + # have gotten better at this, but not perfect. This is easier than + # backporting all of the various doxygen patches. #486754 + find -name '*_.3' -exec grep -l ' Directory Reference ' {} + | \ + xargs rm -f else ewarn "Skipping libstdc++ manpage generation since you don't have doxygen installed" fi @@ -1691,8 +1698,6 @@ toolchain_src_install() { if tc_version_is_at_least 3.0 ; then local cxx_mandir=$(find "${WORKDIR}/build/${CTARGET}/libstdc++-v3" -name man) if [[ -d ${cxx_mandir} ]] ; then - # clean bogus manpages #113902 - find "${cxx_mandir}" -name '*_build_*' -exec rm {} \; cp -r "${cxx_mandir}"/man? "${D}/${DATAPATH}"/man/ fi fi |