diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-11-02 22:55:56 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-11-02 22:55:56 +0000 |
commit | 558a0027960553c0bcf752cc3a83005f160ce438 (patch) | |
tree | b99fd67afa8ba7949ebcb85b446db14f0236dc13 /eclass/bsdmk.eclass | |
parent | Clean up ebuild, and use enewgroup instead of groupadd. (diff) | |
download | gentoo-2-558a0027960553c0bcf752cc3a83005f160ce438.tar.gz gentoo-2-558a0027960553c0bcf752cc3a83005f160ce438.tar.bz2 gentoo-2-558a0027960553c0bcf752cc3a83005f160ce438.zip |
add some checks for the existence of directories/makefiles to dummy_mk
Diffstat (limited to 'eclass/bsdmk.eclass')
-rw-r--r-- | eclass/bsdmk.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/bsdmk.eclass b/eclass/bsdmk.eclass index d46a76bc825a..57cf32c50658 100644 --- a/eclass/bsdmk.eclass +++ b/eclass/bsdmk.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.9 2008/08/08 21:16:24 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/bsdmk.eclass,v 1.10 2011/11/02 22:55:56 aballier Exp $ # @ECLASS: bsdmk.eclass # @MAINTAINER: @@ -64,6 +64,8 @@ mkinstall() { # useful to remove the need for "minimal" patches dummy_mk() { for dir in $@; do + [ -d ${dir} ] || ewarn "dummy_mk called on a non-existing directory: $dir" + [ -f ${dir}/Makefile ] || ewarn "dummy_mk called on a directory without Makefile: $dir" echo ".include <bsd.lib.mk>" > ${dir}/Makefile done } |