summaryrefslogtreecommitdiff
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/prepman
parentrevert my last commit except for the parts i really wanted to commit (diff)
downloadportage-multirepo-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.gz
portage-multirepo-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.tar.bz2
portage-multirepo-1f8b4927f9e7f7a1918cc8d522ead79ce0aeae99.zip
make portage shut up if --quiet is given; bug 62273
svn path=/main/trunk/; revision=3296
Diffstat (limited to 'bin/prepman')
-rwxr-xr-xbin/prepman10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/prepman b/bin/prepman
index f81e200b..ba70a4b8 100755
--- a/bin/prepman
+++ b/bin/prepman
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepman,v 1.10.2.3 2005/05/29 12:40:08 jstubbs Exp $
+source /usr/lib/portage/bin/isolated-functions.sh
+
if [[ -z $1 ]] ; then
z="${D}usr/share/man"
else
@@ -10,7 +12,7 @@ else
fi
if [[ ! -d ${z} ]] ; then
- echo "QA Notice: prepman called with non-existent dir '${z#${D}}'" 2>&1
+ vecho "QA Notice: prepman called with non-existent dir '${z#${D}}'" 2>&1
exit 0
fi
@@ -33,15 +35,15 @@ for x in $(find "${z}"/ -type d 2>/dev/null) ; do
mylink="${mylink}.gz"
fi
- echo "fixing man page symlink: ${mylink##*/}"
+ vecho "fixing man page symlink: ${mylink##*/}"
ln -snf "${linkto}" "${mylink}"
if [[ ${y} != "${mylink}" ]] ; then
- echo "removing old symlink: ${y##*/}"
+ vecho "removing old symlink: ${y##*/}"
rm -f "${y}"
fi
else
if [[ ${y##*.} != "gz" ]] && [[ ${y##*.} != "bz2" ]] && [[ ! -d ${y} ]] ; then
- echo "gzipping man page: ${y##*/}"
+ vecho "gzipping man page: ${y##*/}"
gzip -f -9 "${y}"
fi
fi