Subversion Repositories crystalcursors

Compare Revisions

Ignore whitespace Rev 11 → Rev 12

/trunk/debian/postinst
17,13 → 17,20
# the debian-policy package
#
 
PRIORITY=50
PRIORITY1=50
PRIORITY2=49
TARGET=/usr/share/icons/default/index.theme
ICONDIR=/etc/X11/cursors
DEFAULT=crystalblue.theme
 
case "$1" in
configure|abort-remove|abort-deconfigure|abort-upgrade)
for theme in `find $ICONDIR -regex '.*crystal\(blue\|gray\|green\|white\).*theme$'`; do
if [ "$theme" = "$ICONDIR/$DEFAULT" ]; then
PRIORITY=$PRIORITY1
else
PRIORITY=$PRIORITY2
fi
update-alternatives --install $TARGET x-cursor-theme $theme $PRIORITY
done
;;