vapier      15/05/26 08:32:39

  Modified:             toolchain.eclass
  Log:
  clean out generated "Directory Reference" man pages as they offer no real 
value #486754

Revision  Changes    Path
1.671                eclass/toolchain.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.671&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.671&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.670&r2=1.671

Index: toolchain.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
retrieving revision 1.670
retrieving revision 1.671
diff -u -r1.670 -r1.671
--- toolchain.eclass    25 May 2015 08:41:16 -0000      1.670
+++ toolchain.eclass    26 May 2015 08:32:39 -0000      1.671
@@ -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 <[email protected]>
 
@@ -1576,6 +1576,13 @@
                                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 @@
                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




Reply via email to