#!/bin/sh
# Last modification: Sat, 8 Mar 1997 14:42:29 +0200
# man preinst
#
# This script is run before installation of man-db package, but after a
# previous version or a conflicting package is removed.

set -e

oldcatdir="/var/catman"
catdir="/var/cache/man"

# removing all catpages hierarchy
if	[ -d $oldcatdir ]
then	echo "  Removing catpages as well as $oldcatdir hierarchy."
	rm -rf $oldcatdir 2>/dev/null || true
fi
if	[ -d $catdir ]
then	echo "  Removing catpages as well as $catdir hierarchy."
	rm -rf $catdir 2>/dev/null || true
fi

