summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-05-26 20:02:56 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-05-26 20:02:56 +0000
commit2dbaef769842e721d6eed799a2154e4ae2a82ba4 (patch)
treefc86c5ac9960d44898d971f98e56fd51e59dad89 /sys-apps
parentnow says "Stopping Samba" when service stopped (diff)
downloadhistorical-2dbaef769842e721d6eed799a2154e4ae2a82ba4.tar.gz
historical-2dbaef769842e721d6eed799a2154e4ae2a82ba4.tar.bz2
historical-2dbaef769842e721d6eed799a2154e4ae2a82ba4.zip
now scans /opt/*/man, /usr/share/man, usr/X11R6/share/man, /usr/local/man only.
This is because prepallman was messing up the linux-sources package by gzipping man pages, which would break the Makefiles.
Diffstat (limited to 'sys-apps')
-rwxr-xr-xsys-apps/portage/files/1.5/bin/prepallman36
1 files changed, 19 insertions, 17 deletions
diff --git a/sys-apps/portage/files/1.5/bin/prepallman b/sys-apps/portage/files/1.5/bin/prepallman
index 7fbdf1c9bd1e..fe7923ed31cc 100755
--- a/sys-apps/portage/files/1.5/bin/prepallman
+++ b/sys-apps/portage/files/1.5/bin/prepallman
@@ -1,26 +1,28 @@
#!/bin/bash
-z=`find ${D} -name "man?" -type d`
-echo "man:"
-for x in ${z}
+for x in ${D}/opt/*/man ${D}/usr/share/man ${D}/usr/local/man ${D}/usr/X11R6/share/man
do
+ if [ ! -d ${x} ]
+ then
+ continue
+ fi
w=`echo ${x}/*.?`
if [ "${w}" != "${x}"'/*.?' ]
then
- for y in ${w}
- do
- if [ -h ${y} ]
- then
- #symlink
- linkto=`ls -l ${y} | sed -e "s:${D}::" | awk '{ printf ("%s.gz",$11) } '`
- echo "$linkto $y.gz"
- ln -sf ${linkto} ${y}.gz
- rm ${y}
- else
- gzip -f -9 ${y}
- echo ${y}
- fi
- done
+ for y in ${w}
+ do
+ if [ -h ${y} ]
+ then
+ #symlink
+ linkto=`ls -l ${y} | sed -e "s:${D}::" | awk '{ printf ("%s.gz",$11) } '`
+ echo "$linkto $y.gz"
+ ln -sf ${linkto} ${y}.gz
+ rm ${y}
+ else
+ gzip -f -9 ${y}
+ echo ${y}
+ fi
+ done
fi
done