#!/bin/sh
#
# $FreeBSD: head/devel/desktop-file-utils/files/pkg-deinstall.in 340719 2014-01-22 15:52:06Z mat $
#
# Remove leftover mimeinfo.cache files.

if [ "$2" != "POST-DEINSTALL" ]; then
    exit 0
fi

for mdir in /usr/local/share/applications; do
    if [ -f ${mdir}/mimeinfo.cache ]; then
	rm -f ${mdir}/mimeinfo.cache
    fi
done

exit 0
