diff options
author | John Mylchreest <johnm@gentoo.org> | 2004-02-15 20:11:00 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2004-02-15 20:11:00 +0000 |
commit | 6b8909af486758b2a6c1b650e774552159b824d3 (patch) | |
tree | 5bb78358a8ff77b42688e4dc9347b8c2286eb815 /eclass/kernel-2.eclass | |
parent | Small bug fix (Manifest recommit) (diff) | |
download | gentoo-2-6b8909af486758b2a6c1b650e774552159b824d3.tar.gz gentoo-2-6b8909af486758b2a6c1b650e774552159b824d3.tar.bz2 gentoo-2-6b8909af486758b2a6c1b650e774552159b824d3.zip |
docs fix
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 86c275b56246..acf7f02c6d22 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.26 2004/02/04 19:49:35 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.27 2004/02/15 20:11:00 johnm Exp $ # kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel # with back-compatibility for 2.4 @@ -160,16 +160,20 @@ install_headers() { install_sources() { local doc local docs + local file cd ${S} dodir /usr/src echo ">>> Copying sources..." - if [ -d "${WORKDIR}/${KV}/docs/" ] + file="$(find ${WORKDIR} -iname "docs" -type d)" + if [ -n "${file}" ] then - for file in $(ls -1 ${WORKDIR}/${KV}/docs/) + for file in $(find ${file} -type f) do - echo "XX_${file}*" >> ${S}/patches.txt - cat ${WORKDIR}/${KV}/docs/${file} >> ${S}/patches.txt + echo "${file/*docs\//}" >> ${S}/patches.txt + echo "===================================================" >> ${S}/patches.txt + cat ${file} >> ${S}/patches.txt + echo "===================================================" >> ${S}/patches.txt echo "" >> ${S}/patches.txt done fi @@ -188,6 +192,7 @@ install_sources() { if [ -f ${S}/patches.txt ]; then docs="${docs} ${S}/patches.txt" fi + dodoc ${docs} mv ${WORKDIR}/linux* ${D}/usr/src } |