#set -x
# (MRL) 16 Jan 92 - Created to help install, actually move, the C++ 3.0
# manual pages into the system man directories.
if test x$1 = "x?"
then 
	echo "Usage: install_man <path>"
	echo "where <path> is the name of the path where you want to install"
	echo "these man pages.   The default is /usr/man."
	exit
fi

if test x$1 = "x"
then
	inspath=/usr/man
else
	inspath=$1
fi

echo "Copying man1 pages"
cp -p man/man1/* $inspath/man1
RC=$?
if test $RC != 0
then
	echo "Unable to copy man1 pages"
	exit
fi

echo "Copying man3 pages"
cp -p man/man3/* $inspath/man3
RC=$?
if test $RC != 0
then
	echo "Unable to copy man3 pages"
	exit
fi

echo "man pages installed. Once satisfied, you can remove the ./man directory."
