summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-05-23 12:42:42 +0000
committerMamoru Komachi <usata@gentoo.org>2004-05-23 12:42:42 +0000
commita4be8bfc1159a56c9099542a8425e0f894f12dd7 (patch)
treedee131746b4e7499785dabfe2ef8cf939a8a1b59 /eclass/ruby.eclass
parentOoops, sorry. Already ~amd64'ed. I should have a look at the output of ekeywo... (diff)
downloadhistorical-a4be8bfc1159a56c9099542a8425e0f894f12dd7.tar.gz
historical-a4be8bfc1159a56c9099542a8425e0f894f12dd7.tar.bz2
historical-a4be8bfc1159a56c9099542a8425e0f894f12dd7.zip
Install example directory as well in erubydoc
Diffstat (limited to 'eclass/ruby.eclass')
-rw-r--r--eclass/ruby.eclass18
1 files changed, 10 insertions, 8 deletions
diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass
index 28b1da7d0cef..7247e758821d 100644
--- a/eclass/ruby.eclass
+++ b/eclass/ruby.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/ruby.eclass,v 1.32 2004/04/27 22:05:28 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.33 2004/05/23 12:42:42 usata Exp $
#
# Author: Mamoru KOMACHI <usata@gentoo.org>
#
@@ -141,16 +141,18 @@ erubydoc() {
insinto ${rdbase}
[ -n "${rdfiles}" ] && doins ${rdfiles}
rmdir --ignore-fail-on-non-empty ${D}${rdbase}
- if [ -d doc -o -d docs -o examples ] ; then
- dohtml -x html -r {doc,docs,examples}/*
- dohtml -r {doc,docs,examples}/html/*
+ if [ -d doc -o -d docs ] ; then
+ dohtml -x html -r {doc,docs}/*
+ dohtml -r {doc,docs}/html/*
else
dohtml -r *
fi
- if [ -d sample ] ; then
- dodir /usr/share/doc/${PF}
- cp -a sample ${D}/usr/share/doc/${PF} || die "cp failed"
- fi
+ for dir in sample example examples; do
+ if [ -d ${dir} ] ; then
+ dodir /usr/share/doc/${PF}
+ cp -a ${dir} ${D}/usr/share/doc/${PF} || die "cp failed"
+ fi
+ done
for i in ChangeLog* [A-Z][A-Z]* ; do
[ -e $i ] && dodoc $i
done