aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-30 21:49:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-31 19:32:25 +0000
commit99ef1f17292200b18e7b9933aed0e689ebded765 (patch)
tree925b1be37651c75f4a34e9dd2b29b061673bd98a
parent07c6db21b1ab646340e35071e1da97b684fab44a (diff)
downloadpaludis-99ef1f17292200b18e7b9933aed0e689ebded765.tar.gz
paludis-99ef1f17292200b18e7b9933aed0e689ebded765.tar.xz
Make dohtml show nicer errors
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dohtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dohtml b/paludis/repositories/e/ebuild/utils/dohtml
index ba3cbb887..4576762cd 100755
--- a/paludis/repositories/e/ebuild/utils/dohtml
+++ b/paludis/repositories/e/ebuild/utils/dohtml
@@ -111,10 +111,15 @@ install_file() {
pfx=${bn}
[[ -n ${prefix} ]] && pfx="${prefix}/${pfx}"
install_file "$(basename "${f}")" "${dn}" "${pfx}"
- (( ret += $? ))
+ (( ret |= $? ))
done
else
- (( ++ret ))
+ if [[ -d "${path}" ]] ; then
+ echo "!!! Directory '${path}' encountered, but -r not specified"
+ else
+ echo "!!! Don't know what to do with '${path}'"
+ fi
+ (( ret |= 1 ))
fi
return ${ret}
}