#!/bin/sh
# $FreeBSD: ports/print/acroread9/files/pkg-deinstall.in,v 1.3 2012/11/17 06:00:48 svnexp Exp $

if [ "$2" != "POST-DEINSTALL" \
	-o -d /usr/local/Adobe/Reader9 ]; then
	exit 0
fi

cat <<EOT | while read F; do rm -f /usr/local/$F; done
share/applications/AdobeReader.desktop
share/applications/defaults.list.new
share/icons/hicolor/.xdg-icon-resource-dummy
share/icons/hicolor/128x128/apps/AdobeReader9.png
share/icons/hicolor/128x128/apps/adobe.pdf.png
share/icons/hicolor/128x128/apps/vnd.adobe.pdx.png
share/icons/hicolor/128x128/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/128x128/apps/vnd.adobe.xfdf.png
share/icons/hicolor/128x128/apps/vnd.fdf.png
share/icons/hicolor/128x128/mimetypes/application-pdf.png
share/icons/hicolor/128x128/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/128x128/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/128x128/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/128x128/mimetypes/application-vnd.fdf.png
share/icons/hicolor/16x16/apps/AdobeReader9.png
share/icons/hicolor/16x16/apps/adobe.pdf.png
share/icons/hicolor/16x16/apps/vnd.adobe.pdx.png
share/icons/hicolor/16x16/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/16x16/apps/vnd.adobe.xfdf.png
share/icons/hicolor/16x16/apps/vnd.fdf.png
share/icons/hicolor/16x16/mimetypes/application-pdf.png
share/icons/hicolor/16x16/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/16x16/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/16x16/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/16x16/mimetypes/application-vnd.fdf.png
share/icons/hicolor/192x192/apps/AdobeReader9.png
share/icons/hicolor/192x192/apps/adobe.pdf.png
share/icons/hicolor/192x192/apps/vnd.adobe.pdx.png
share/icons/hicolor/192x192/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/192x192/apps/vnd.adobe.xfdf.png
share/icons/hicolor/192x192/apps/vnd.fdf.png
share/icons/hicolor/192x192/mimetypes/application-pdf.png
share/icons/hicolor/192x192/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/192x192/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/192x192/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/192x192/mimetypes/application-vnd.fdf.png
share/icons/hicolor/20x20/apps/AdobeReader9.png
share/icons/hicolor/20x20/apps/adobe.pdf.png
share/icons/hicolor/20x20/apps/vnd.adobe.pdx.png
share/icons/hicolor/20x20/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/20x20/apps/vnd.adobe.xfdf.png
share/icons/hicolor/20x20/apps/vnd.fdf.png
share/icons/hicolor/20x20/mimetypes/application-pdf.png
share/icons/hicolor/20x20/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/20x20/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/20x20/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/20x20/mimetypes/application-vnd.fdf.png
share/icons/hicolor/22x22/apps/AdobeReader9.png
share/icons/hicolor/22x22/apps/adobe.pdf.png
share/icons/hicolor/22x22/apps/vnd.adobe.pdx.png
share/icons/hicolor/22x22/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/22x22/apps/vnd.adobe.xfdf.png
share/icons/hicolor/22x22/apps/vnd.fdf.png
share/icons/hicolor/22x22/mimetypes/application-pdf.png
share/icons/hicolor/22x22/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/22x22/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/22x22/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/22x22/mimetypes/application-vnd.fdf.png
share/icons/hicolor/24x24/apps/AdobeReader9.png
share/icons/hicolor/24x24/apps/adobe.pdf.png
share/icons/hicolor/24x24/apps/vnd.adobe.pdx.png
share/icons/hicolor/24x24/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/24x24/apps/vnd.adobe.xfdf.png
share/icons/hicolor/24x24/apps/vnd.fdf.png
share/icons/hicolor/24x24/mimetypes/application-pdf.png
share/icons/hicolor/24x24/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/24x24/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/24x24/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/24x24/mimetypes/application-vnd.fdf.png
share/icons/hicolor/32x32/apps/AdobeReader9.png
share/icons/hicolor/32x32/apps/adobe.pdf.png
share/icons/hicolor/32x32/apps/vnd.adobe.pdx.png
share/icons/hicolor/32x32/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/32x32/apps/vnd.adobe.xfdf.png
share/icons/hicolor/32x32/apps/vnd.fdf.png
share/icons/hicolor/32x32/mimetypes/application-pdf.png
share/icons/hicolor/32x32/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/32x32/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/32x32/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/32x32/mimetypes/application-vnd.fdf.png
share/icons/hicolor/36x36/apps/AdobeReader9.png
share/icons/hicolor/36x36/apps/adobe.pdf.png
share/icons/hicolor/36x36/apps/vnd.adobe.pdx.png
share/icons/hicolor/36x36/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/36x36/apps/vnd.adobe.xfdf.png
share/icons/hicolor/36x36/apps/vnd.fdf.png
share/icons/hicolor/36x36/mimetypes/application-pdf.png
share/icons/hicolor/36x36/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/36x36/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/36x36/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/36x36/mimetypes/application-vnd.fdf.png
share/icons/hicolor/48x48/apps/AdobeReader9.png
share/icons/hicolor/48x48/apps/adobe.pdf.png
share/icons/hicolor/48x48/apps/vnd.adobe.pdx.png
share/icons/hicolor/48x48/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/48x48/apps/vnd.adobe.xfdf.png
share/icons/hicolor/48x48/apps/vnd.fdf.png
share/icons/hicolor/48x48/mimetypes/application-pdf.png
share/icons/hicolor/48x48/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/48x48/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/48x48/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/48x48/mimetypes/application-vnd.fdf.png
share/icons/hicolor/64x64/apps/AdobeReader9.png
share/icons/hicolor/64x64/apps/adobe.pdf.png
share/icons/hicolor/64x64/apps/vnd.adobe.pdx.png
share/icons/hicolor/64x64/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/64x64/apps/vnd.adobe.xfdf.png
share/icons/hicolor/64x64/apps/vnd.fdf.png
share/icons/hicolor/64x64/mimetypes/application-pdf.png
share/icons/hicolor/64x64/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/64x64/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/64x64/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/64x64/mimetypes/application-vnd.fdf.png
share/icons/hicolor/96x96/apps/AdobeReader9.png
share/icons/hicolor/96x96/apps/adobe.pdf.png
share/icons/hicolor/96x96/apps/vnd.adobe.pdx.png
share/icons/hicolor/96x96/apps/vnd.adobe.xdp+xml.png
share/icons/hicolor/96x96/apps/vnd.adobe.xfdf.png
share/icons/hicolor/96x96/apps/vnd.fdf.png
share/icons/hicolor/96x96/mimetypes/application-pdf.png
share/icons/hicolor/96x96/mimetypes/application-vnd.adobe.pdx.png
share/icons/hicolor/96x96/mimetypes/application-vnd.adobe.xdp+xml.png
share/icons/hicolor/96x96/mimetypes/application-vnd.adobe.xfdf.png
share/icons/hicolor/96x96/mimetypes/application-vnd.fdf.png
EOT

cat <<EOT | while read D; do rmdir /usr/local/$D > /dev/null 2>&1 || true; done
share/icons/hicolor/20x20/mimetypes
share/icons/hicolor/20x20/apps
share/icons/hicolor/20x20
EOT

