#!/sbin/sh
########
# Product: SW-DIST
# Fileset: SD-ENG-A-MAN
# postremove
# @(#) $Revision: 5.2 $
########
#
# (c) Copyright Hewlett-Packard Company 1995
#
# This postremove script removes formatted versions of the man pages.
# 


##
##   Grab the standard control_utils.
##
UTILS=/usr/lbin/sw/control_utils
if [ -f $UTILS ]
then
    . $UTILS
else
    echo "ERROR:   Cannot find $UTILS"
    exit 1
fi


##
##   Remove any formatted man pages (created by the man command).
##
for mp in		\
    sd.1m       	\
    swacl.1m		\
    swagent.1m		\
    swagentd.1m		\
    swconfig.1m		\
    swcopy.1m		\
    swinstall.1m	\
    swjob.1m		\
    swlist.1m		\
    swmodify.1m		\
    swpackage.1m	\
    swreg.1m		\
    swremove.1m		\
    swverify.1m
do
    rm -f ${ROOT}usr/share/man/ja_JP.eucJP/man1m/$mp
    rm -f ${ROOT}usr/share/man/ja_JP.eucJP/cat1m.Z/$mp
done
for mp in		\
    sd.4		\
    swpackage.4
do
    rm -f ${ROOT}usr/share/man/ja_JP.eucJP/man4/$mp 
    rm -f ${ROOT}usr/share/man/ja_JP.eucJP/cat4.Z/$mp
done
rm -f ${ROOT}usr/share/man/ja_JP.eucJP/man5/sd.5 
rm -f ${ROOT}usr/share/man/ja_JP.eucJP/cat5.Z/sd.5


##
##   Exit with good status.
##
exit $SUCCESS
