summaryrefslogtreecommitdiffstats
path: root/bin/prepalldocs
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/prepalldocs
parentd0325c25afa83e66310108a0a0fe74926051a83d (diff)
downloadportage-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/prepalldocs')
-rwxr-xr-xbin/prepalldocs8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/prepalldocs b/bin/prepalldocs
index 16bd4901a..a2c4e76e5 100755
--- a/bin/prepalldocs
+++ b/bin/prepalldocs
@@ -3,6 +3,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepalldocs,v 1.6 2004/10/04 13:56:50 vapier Exp $
+source /usr/lib/portage/bin/isolated-functions.sh
+
z="$(find "${D}"usr/share/doc \( -type f -or -type l \) -not -name "*.gz" -not -name "*.js" 2>/dev/null)"
for y in ${z} ; do
@@ -18,15 +20,15 @@ for y in ${z} ; do
mylink="${mylink}.gz"
fi
- echo "fixing doc symlink: ${mylink##*/}"
+ vecho "fixing doc 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" ] ; then
- echo "gzipping doc: ${y##*/}"
+ vecho "gzipping doc: ${y##*/}"
gzip -f -9 "${y}"
fi
fi