summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-23 05:31:44 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-23 05:31:44 +0000
commitf9d5295d8d557a503f635e9b05db1d9296058335 (patch)
tree4a17914785ce1af122b5f96f3dfb6be216d3fe22
parentbefcb67af897f7e6c26e3d7d2b938c4b8e763bc8 (diff)
downloadportage-f9d5295d8d557a503f635e9b05db1d9296058335.tar.gz
portage-f9d5295d8d557a503f635e9b05db1d9296058335.tar.bz2
portage-f9d5295d8d557a503f635e9b05db1d9296058335.zip
simply code to break down arguments to prepman
svn path=/main/trunk/; revision=2768
-rwxr-xr-xbin/prepallman4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/prepallman b/bin/prepallman
index b523ef703..e02b5ba3d 100755
--- a/bin/prepallman
+++ b/bin/prepallman
@@ -8,7 +8,9 @@ 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
- prepman "`echo "${x}" | sed -e "s:${D}::" -e "s:/man[/]*$::"`"
+ x=${x#${D}}
+ x=${x%/man}
+ prepman "${x}"
((ret+=$?))
fi
done