doins: fix dodoc directory error handling
authorZac Medico <zmedico@gentoo.org>
Fri, 25 Feb 2011 20:32:21 +0000 (12:32 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 25 Feb 2011 20:32:21 +0000 (12:32 -0800)
bin/ebuild-helpers/doins

index c549791fcc3dc01b2df2c8c0007c2326353dff39..0aedcb9e56ef5444365c3f71609b8b60e76bb810 100755 (executable)
@@ -89,6 +89,10 @@ for x in "$@" ; do
        if [[ $PRESERVE_SYMLINKS = n && -d $x ]] || \
                [[ $PRESERVE_SYMLINKS = y && -d $x && ! -L $x ]] ; then
                if [ "${DOINSRECUR}" == "n" ] ; then
+                       if [[ ${0##*/} == dodoc ]] ; then
+                               echo "!!! ${0##*/}: $x is a directory" 1>&2
+                               ((failed|=1))
+                       fi
                        continue
                fi