#!/sbin/sh
#------------------------------------------------------------------#
#
# HPUX_ID: @(#) $Revision: 14.3 $ generated on Tue May 23 04:16:59 EDT 2000
#
# (c)Copyright 1983-2000 Hewlett-Packard Co.,  All Rights Reserved.
#
#------------------------------------------------------------------#
# SD preinstall script template for 11.X patches.                  #
#------------------------------------------------------------------#
# This file is optional for all 11.X patches.  The purpose of this #
# script is to prepare the system for installation of the patch.   #
#------------------------------------------------------------------#

_PATCHID=PHCO_21596

UTILS="/usr/lbin/sw/control_utils"

if [ ! -f $UTILS ]; then
    echo "ERROR:   Cannot find $UTILS"
    exit 1
fi

. $UTILS
exitval=$SUCCESS

#####
##### Insert any code you may require at this point in the script.
##### Pay attention to the exitval variable and set appropriately
##### in your code.  If you are unsure as to what types of operations
##### are legal in this file and what types aren't, consult the 
##### "Guidelines for SD Control Scripts" document.
#####
##### START_CUSTOMIZATION_HERE

# Remove formatted man pages cached in the usr/share/man/cat[X].Z
# directory. Note that the following list must be updated whenever
# a new man page is added.
#
MAN_1m_LIST="mksf.1m insf.1m rmsf.1m"

MAN_1m=${SW_ROOT_DIRECTORY}usr/share/man/cat1m.Z/

typeset cached_man_page=
for cached_man_page in $MAN_1m_LIST
do
   if [ -f ${MAN_1m}/$cached_man_page ]; then
      rm -f ${MAN_1m}/$cached_man_page 1>/dev/null 2>&1
   fi
done

exit $exitval
