summaryrefslogtreecommitdiff
path: root/bin/doman
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-05-01 21:12:04 +0000
committerSimon Stelling <blubb@gentoo.org>2006-05-01 21:12:04 +0000
commit1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99 (patch)
tree4cf7182aa108f06aa07c2b3b53199b7ceca50b52 /bin/doman
parentrevert my last commit except for the parts i really wanted to commit (diff)
downloadportage-idfetch-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.gz
portage-idfetch-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.bz2
portage-idfetch-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.zip
make portage shut up if --quiet is given; bug 62273
svn path=/main/trunk/; revision=3296
Diffstat (limited to 'bin/doman')
-rwxr-xr-xbin/doman8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/doman b/bin/doman
index 658e3477..a04339d5 100755
--- a/bin/doman
+++ b/bin/doman
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/doman,v 1.13.2.2 2005/07/29 05:55:34 vapier Exp $
+source /usr/lib/portage/bin/isolated-functions.sh
+
if [[ $# -lt 1 ]] ; then
echo "$0: at least one argument needed" 1>&2
exit 1
@@ -26,7 +28,7 @@ for x in "$@" ; do
if [[ ${suffix} == "gz" ]] ; then
realname=${x%.*}
suffix=${realname##*.}
- echo "QA Notice: you should let portage compress '${realname}' for you" 2>&1
+ vecho "QA Notice: you should let portage compress '${realname}' for you" 2>&1
fi
mandir=${i18n}man${suffix:0:1}
@@ -40,11 +42,11 @@ for x in "$@" ; do
install -m0644 "${x}" "${D}/usr/share/man/${mandir}"
((ret+=$?))
elif [[ ! -e ${x} ]] ; then
- echo "doman: ${x} does not exist" 1>&2
+ vecho "doman: ${x} does not exist" 1>&2
((++ret))
fi
else
- echo "doman: '${x}' is probably not a man page; skipping" 1>&2
+ vecho "doman: '${x}' is probably not a man page; skipping" 1>&2
((++ret))
fi
done