if [ -d /usr/man/cat1.Z ] # HP
then
echo "Installing the man pages. Please wait ..."
for i in `cat man.list`
do
char=`echo $i | cut -f 2 -d'.' | cut -c1`
cp $i /usr/man/cat$char.Z/
compress -f /usr/man/cat$char.Z/$i
mv /usr/man/cat$char.Z/$i.Z /usr/man/cat$char.Z/$i
done
echo "Completed"
elif [ -d /usr/catman/URM ] # NCR
then
echo "Installing the man pages. Please wait ..."
for i in `cat man.list`
do
char=`echo $i | cut -f 2 -d'.' | cut -c1`
if [ ! -d /usr/catman/URM/g$char ]
then
mkdir /usr/catman/URM/g$char 2>/dev/null
fi
file=`echo $i | cut -f 1 -d'.'`
cp $i /usr/catman/URM/g$char/
mv /usr/catman/URM/g$char/$i /usr/catman/URM/g$char/$file
pack -f /usr/catman/URM/g$char/$file
if grep /usr/catman/URM/g$char/$file.z /usr/catman/index/baseos > /dev/null 2>&1
then :
else
echo "/usr/catman/URM/g$char/$file.z" >> /usr/catman/index/baseos
fi
done
echo "Completed"
elif [ -d /usr/flib/books/man/cat1 ] # UNIXWARE
then
echo "Installing the man pages. Please wait ..."
for i in `cat man.list`
do
char=`echo $i | cut -f 2 -d'.' | cut -c1`
cp $i /usr/flib/books/man/cat$char/$i
done
echo "Completed"
elif [ -d /usr/share/man/man1 ] # AIX and Solaris and DEC
then
echo "Installing 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'.'`
cp $i /usr/share/man/man$char/$i
if [ "AIX" = "`uname`" ]
then
mv /usr/share/man/man$char/$i /usr/share/man/man$char/$file
fi
done
echo "Completed"
elif [ -d /usr/man/cat.LOCAL ] # SCO
then
echo "Installing the man pages. Please wait ..."
for i in `cat man.list`
do
file=`echo $i | cut -f 1 -d'.'`
if [ "$file" = "tn3270c" -o "$file" = "tn3287c" ]
then
cat $i >> /usr/man/cat.LOCAL/$file.LOCAL
continue
fi
cp $i /usr/man/cat.LOCAL/$i
mv /usr/man/cat.LOCAL/$i /usr/man/cat.LOCAL/$file.LOCAL
done
echo "Completed"
else
echo "It is not possible to install the man pages."
echo "The man directories have not been installed on this system."
fi