cd
test -f installed/man-1.6f.tar.gz && mv installed/man-1.6f.tar.gz .
test ! -f man-1.6f.tar.gz &&
wget http://primates.ximian.com/~flucifredi/man/man-1.6f.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "man-?.*" -exec rm -r {} \;
tar xzvf ~/man-1.6f.tar.gz
cd man-1.6f
test $UID = 0 && chown -R root:root .
./configure -default
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg man
rm -f /usr/lib/man.conf
make install
chown -R $USER .
# In Slackware, /usr/share/man is a symlink to /usr/man
#
# This next part will make /usr/local/share/man a symlink to
# /usr/local/man. If the same man page is in both places, the
# newer one will overwrite the old one.
#
# (You can also just add /usr/local/share/man to MANPATH)
test ! -L /usr/local/share/man &&
test -d /usr/local/share/man &&
( cd /usr/local/share/man
for mandir in man?;
do
echo "/usr/local/share/man/${mandir} -> /usr/local/man/${mandir}"
for manpage in ${mandir}/*.?;
do
full_ulsm="/usr/local/share/man/$manpage"
full_ulm="/usr/local/man/$manpage"
short_mp=$(basename $manpage)
if [ -f "$full_ulsm" -a -f "$full_ulm" ]; then
if [ "$full_ulsm" -nt "$full_ulm" ]; then
mv -f "$full_ulsm" "$full_ulm"
else
mv -f "$full_ulm" "$full_ulsm"
fi
fi
done
rm -r "./${mandir}"
done
cd ../..
rmdir /usr/local/share/man
ln -sf /usr/local/man /usr/local/share/man )
# See man2html/README for info about setting up webified man pages