#! /bin/sh

set -eu

REMOVED_LIST=""
ICONDIR=/etc/X11/cursors

case "$1" in
    upgrade)
	for theme in $REMOVED_LIST; 
	do
            if update-alternatives --list x-cursor-theme |grep -q "$theme"; then
	      update-alternatives --remove "$ICONDIR/$theme"
	      rm -f "$ICONDIR/$theme"
            fi
	done
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
