Debian Codegraph @

debian/prerm

raw
1 #! /bin/sh
2 # prerm script for chameleon-cursor-theme
3 # (based on prerm of comixcursors by Sune Vuorela)
4
5 set -e
6
7 ICONDIR=/usr/share/icons
8
9 case "$1" in
10 remove|upgrade|deconfigure)
11 for theme in `find "$ICONDIR" -regex '.*Chameleon-\(Anthracite\|DarkSkyBlue\|Pearl\|White\|SkyBlue\|Mint\|Purple\)-.*theme$'`; do
12 update-alternatives --remove x-cursor-theme "$theme"
13 done
14 ;;
15 failed-upgrade)
16 ;;
17 *)
18 echo "prerm called with unknown argument \`$1'" >&2
19 exit 1
20 ;;
21 esac
22
23 #DEBHELPER#
24
25 exit 0