summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-03 03:07:23 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-03 03:07:23 +0000
commit4d8235c601d9cda36b63280ca1ef085c62bcb169 (patch)
tree4d29b29188730c505cbafef4267ecfb31059db45
parent24351730eebfc8445a4d0d341b7dad90aa73d7e8 (diff)
downloadportage-4d8235c601d9cda36b63280ca1ef085c62bcb169.tar.gz
portage-4d8235c601d9cda36b63280ca1ef085c62bcb169.tar.bz2
portage-4d8235c601d9cda36b63280ca1ef085c62bcb169.zip
exit with proper status rather than always 0
svn path=/main/trunk/; revision=2627
-rwxr-xr-xbin/prepallman8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/prepallman b/bin/prepallman
index c3dd05bf9..b523ef703 100755
--- a/bin/prepallman
+++ b/bin/prepallman
@@ -3,10 +3,14 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepallman,v 1.10 2004/10/04 13:56:50 vapier Exp $
+ret=0
+
echo "man:"
for x in "${D}"opt/*/man "${D}"usr/share/man "${D}"usr/local/man "${D}"usr/X11R6/man ; do
- if [ -d "${x}" ]
- then
+ if [[ -d ${x} ]] ; then
prepman "`echo "${x}" | sed -e "s:${D}::" -e "s:/man[/]*$::"`"
+ ((ret+=$?))
fi
done
+
+exit ${ret}