diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-05-02 15:00:15 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-05-02 15:00:15 +0000 |
commit | 73cc989c9a6b67e1aa1b5a715cdd688864443b20 (patch) | |
tree | b55f57c4742275e29c8ef73502835716a945a7f8 /eclass/vdr-plugin.eclass | |
parent | Removing old ebuilds (diff) | |
download | gentoo-2-73cc989c9a6b67e1aa1b5a715cdd688864443b20.tar.gz gentoo-2-73cc989c9a6b67e1aa1b5a715cdd688864443b20.tar.bz2 gentoo-2-73cc989c9a6b67e1aa1b5a715cdd688864443b20.zip |
added a bit more error-reporting code
Diffstat (limited to 'eclass/vdr-plugin.eclass')
-rw-r--r-- | eclass/vdr-plugin.eclass | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index de1075343589..f4a817053a3a 100644 --- a/eclass/vdr-plugin.eclass +++ b/eclass/vdr-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.19 2006/04/26 13:36:10 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.20 2006/05/02 15:00:15 zzam Exp $ # # Author: # Matthias Schwarzott <zzam@gentoo.org> @@ -119,9 +119,16 @@ vdr-plugin_src_unpack() { base_src_unpack ;; patchmakefile) - cd ${S} + if ! cd ${S}; then + ewarn "There seems to be no plugin-directory with the name ${S##*/}" + ewarn "Perhaps you find one among these:" + cd "${WORKDIR}" + einfo "$(/bin/ls -1 ${WORKDIR})" + die "Could not change to plugin-source-directory!" + fi ebegin "Patching Makefile" + [[ -e Makefile ]] || die "Makefile of plugin can not be found!" sed -i.orig Makefile \ -e "s:^VDRDIR.*$:VDRDIR = ${VDR_INCLUDE_DIR}:" \ -e "s:^DVBDIR.*$:DVBDIR = ${DVB_INCLUDE_DIR}:" \ |