aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-25 18:13:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 14:11:27 +0000
commite0ef0b7678fd7c9fa970313b53e0d99d8732d133 (patch)
tree4ac4a5e137c680e1098bac82b04bc9d2597137d8
parent6319f1e7cac9aac93c066f0b1318d71489987cf8 (diff)
downloadpaludis-e0ef0b7678fd7c9fa970313b53e0d99d8732d133.tar.gz
paludis-e0ef0b7678fd7c9fa970313b53e0d99d8732d133.tar.xz
Error if dodoc hits a directory and not -r
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dodoc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dodoc b/paludis/repositories/e/ebuild/utils/dodoc
index 35d1472..05384aa 100755
--- a/paludis/repositories/e/ebuild/utils/dodoc
+++ b/paludis/repositories/e/ebuild/utils/dodoc
@@ -2,7 +2,7 @@
# vim: set sw=4 sts=4 et :
# Copyright (c) 2006 Stephen Bennett
-# Copyright (c) 2007, 2009 Ciaran McCreesh
+# Copyright (c) 2007, 2009, 2011 Ciaran McCreesh
#
# Based in part upon dodoc from Portage, which is Copyright 1995-2005
# Gentoo Foundation and distributed under the terms of the GNU General
@@ -60,6 +60,9 @@ for x in "$@"; do
elif [[ ! -e "${x}" ]]; then
echo "${0}: ${x} does not exist" >&2
ret=2
+ elif [[ -d "${x}" ]] ; then
+ echo "${0}: ${x} is a directory but we are not recursing" >&2
+ ret=1
fi
done