if [ -d /usr/man/cat1.Z ] # HP
then
echo "Removing the man pages. Please wait ..."
for i in `cat man.list`
do
char=`echo $i | cut -f 2 -d'.' | cut -c1`
rm -f /usr/man/cat$char.Z/$i
done
echo "Completed"
elif [ -d /usr/catman/URM ] # NCR
then
echo "Removing the man pages. Please wait ..."
cp /usr/catman/index/baseos /usr/catman/index/baseos.orig
for i in `cat man.list`
do
char=`echo $i | cut -f 2 -d'.' | cut -c1`
file=`echo $i | cut -f 1 -d'.'`
rm -f /usr/catman/URM/g$char/$file.z
grep -v /usr/catman/URM/g$char/$file.z /usr/catman/index/baseos > /tmp/temp.$$
cp /tmp/temp.$$ /usr/catman/index/baseos
rm /tmp/temp.$$
done
echo "Completed"
elif [ -d /usr/flib/books/man/cat1 ] # UNIXWARE
then
echo "Removing the man pages. Please wait ..."
for i in `cat man.list`
do
char=`echo $i | cut -f 2 -d'.' | cut -c1`
rm -f /usr/flib/books/man/cat$char/$i
done
echo "Completed"
elif [ -d /usr/share/man/man1 ] # AIX and Solaris and DEC
then
echo "Removing the man pages. Please wait ..."
for i in `cat man.list`
do
char=`echo $i | cut -f2 -d'.' | cut -c1`
file=`echo $i | cut -f1 -d'.'`
if [ "AIX" = "`uname`" ]
then
rm -f /usr/share/man/man$char/$file
rm -f /usr/man/cat$char/$file
else
rm -f /usr/share/man/man$char/$i
rm -f /usr/man/cat$char/$i
fi
done
echo "Completed"
elif [ -d /usr/man/cat.LOCAL ] # SCO
then
echo "Removing the man pages. Please wait ..."
for i in `cat man.list`
do
file=`echo $i | cut -f 1 -d'.'`
rm -f /usr/man/cat.LOCAL/$file.LOCAL
done
echo "Completed"
fi