summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2002-08-16 12:20:48 +0000
committerMichael Cummings <mcummings@gentoo.org>2002-08-16 12:20:48 +0000
commit5ca7a4c3b3479f7cd015257db9469e1fa76a5aab (patch)
tree4371a806a70a4284e6bc37f173fb7379a4c70efa /eclass/perl-post.eclass
parentUpdated module to sperate pod creations (diff)
downloadgentoo-2-5ca7a4c3b3479f7cd015257db9469e1fa76a5aab.tar.gz
gentoo-2-5ca7a4c3b3479f7cd015257db9469e1fa76a5aab.tar.bz2
gentoo-2-5ca7a4c3b3479f7cd015257db9469e1fa76a5aab.zip
Updated pod merging. Supports both arch and site pods now, and appends
instead of wiping the original pods.
Diffstat (limited to 'eclass/perl-post.eclass')
-rw-r--r--eclass/perl-post.eclass19
1 files changed, 17 insertions, 2 deletions
diff --git a/eclass/perl-post.eclass b/eclass/perl-post.eclass
index ceeda460f6af..ca86d20b91d5 100644
--- a/eclass/perl-post.eclass
+++ b/eclass/perl-post.eclass
@@ -1,7 +1,7 @@
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# Author: Seemant Kulleen <seemant@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-post.eclass,v 1.7 2002/07/27 18:28:00 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-post.eclass,v 1.8 2002/08/16 12:20:48 mcummings Exp $
# The perl-post eclass is designed to allow the ${installarchdir}/perllocal.pod
# file to be updated cleanly after perl and/or perl-modules are installed
# or removed.
@@ -11,6 +11,7 @@ INHERITED="$INHERITED $ECLASS"
EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \
perlinfo updatepod
+SITE_LIB=""
ARCH_LIB=""
POD_DIR=""
@@ -46,7 +47,9 @@ perl-post_perlinfo() {
if [ -f /usr/bin/perl ]
then
eval `perl '-V:installarchlib'`
+ eval `perl '-V:installsitearch'`
ARCH_LIB=${installarchlib}
+ SITE_LIB=${installsitearch}
eval `perl '-V:version'`
POD_DIR="/usr/share/perl/gentoo-pods/${version}"
@@ -59,6 +62,18 @@ perl-post_updatepod() {
if [ -d "${POD_DIR}" ]
then
- cat ${POD_DIR}/*.pod > ${ARCH_LIB}/perllocal.pod
+ for FILE in `find ${POD_DIR} -type f -name "*.pod.arch"`; do
+ cat ${FILE} >> ${ARCH_LIB}/perllocal.pod
+ rm -f ${FILE}
+ done
+ for FILE in `find ${POD_DIR} -type f -name "*.pod.site"`; do
+ cat ${FILE} >> ${SITE_LIB}/perllocal.pod
+ rm -f ${FILE}
+ done
+
+ #cat ${POD_DIR}/*.pod.arch >> ${ARCH_LIB}/perllocal.pod
+ #cat ${POD_DIR}/*.pod.site >> ${SITE_LIB}/perllocal.pod
+ #rm -f ${POD_DIR}/*.pod.site
+ #rm -f ${POD_DIR}/*.pod.site
fi
}