diff options
author | Simon Stelling <blubb@gentoo.org> | 2006-05-01 21:12:04 +0000 |
---|---|---|
committer | Simon Stelling <blubb@gentoo.org> | 2006-05-01 21:12:04 +0000 |
commit | 1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99 (patch) | |
tree | 4cf7182aa108f06aa07c2b3b53199b7ceca50b52 /bin/doman | |
parent | d0325c25afa83e66310108a0a0fe74926051a83d (diff) | |
download | portage-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.gz portage-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.bz2 portage-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-x | bin/doman | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |