diff options
author | Sven Wegener <swegener@gentoo.org> | 2005-07-11 12:40:25 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2005-07-11 12:40:25 +0000 |
commit | 09c9635325203b500b3f58cb14f92a4364381002 (patch) | |
tree | 4d119583d565be8ce31fe3ed0875018919bcb5ab /eclass | |
parent | keyworded x86 (diff) | |
download | gentoo-2-09c9635325203b500b3f58cb14f92a4364381002.tar.gz gentoo-2-09c9635325203b500b3f58cb14f92a4364381002.tar.bz2 gentoo-2-09c9635325203b500b3f58cb14f92a4364381002.zip |
QA: Use EXPORT_FUNCTIONS instead of creating our own wrapper functions.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/common-lisp.eclass | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/eclass/common-lisp.eclass b/eclass/common-lisp.eclass index 05f5b8e945d0..e7cebbc99ca0 100644 --- a/eclass/common-lisp.eclass +++ b/eclass/common-lisp.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/common-lisp.eclass,v 1.11 2005/07/06 20:23:20 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/common-lisp.eclass,v 1.12 2005/07/11 12:40:25 swegener Exp $ # # Author Matthew Kennedy <mkennedy@gentoo.org> # @@ -12,6 +12,8 @@ inherit common-lisp-common CLPACKAGE= DEPEND="dev-lisp/common-lisp-controller" +EXPORT_FUNCTIONS pkg_postinst pkg_postrm + common-lisp_pkg_postinst() { if [ -z "${CLPACKAGE}" ]; then die "CLPACKAGE was empty or undefined upon call to pkg_prerm" @@ -37,14 +39,6 @@ common-lisp_pkg_postrm() { fi } -pkg_postinst() { - common-lisp_pkg_postinst -} - -pkg_postrm() { - common-lisp_pkg_postrm -} - # # In pkg_preinst, we remove the FASL files for the previous version of # the source. @@ -61,7 +55,7 @@ pkg_preinst() { } common-lisp-install() { - insinto ${CLSOURCEROOT}/$CLPACKAGE + insinto ${CLSOURCEROOT}/${CLPACKAGE} doins $@ } @@ -69,9 +63,9 @@ common-lisp-system-symlink() { dodir ${CLSYSTEMROOT}/`dirname ${CLPACKAGE}` if [ $# -eq 0 ]; then dosym ${CLSOURCEROOT}/${CLPACKAGE}/${CLPACKAGE}.asd \ - ${CLSYSTEMROOT}/$CLPACKAGE.asd + ${CLSYSTEMROOT}/${CLPACKAGE}.asd else - for package in $@ ; do + for package in "$@" ; do dosym ${CLSOURCEROOT}/$CLPACKAGE/${package}.asd \ ${CLSYSTEMROOT}/${package}.asd done |