=== added file 'debian/postinst' --- debian/postinst 1970-01-01 00:00:00 +0000 +++ debian/postinst 2011-01-19 05:19:24 +0000 @@ -0,0 +1,32 @@ +#! /bin/sh +set -e + +write_cache() +{ +if [ -x /usr/bin/gtk-update-icon-cache ]; then + if ! gtk-update-icon-cache --force --quiet /usr/share/icons/gnome; then + echo "WARNING: icon cache generation failed" + fi +fi +} + +if [ "$1" = "triggered" ]; then + write_cache + exit 0 +fi + +SIZES=$(ls /usr/share/icons/gnome/*/places | sed -rn 's,^.*/([0-9]+)x[0-9]+/.*$,\1,p') + +( while read name prio; do + command="update-alternatives --install /usr/share/icons/gnome/scalable/places/start-here.svg start-here.svg /usr/share/icons/trisquel/scalable/places/$name.svg $prio" + for s in $SIZES; do + command="$command --slave /usr/share/icons/gnome/${s}x${s}/places/start-here.png start-here-${s}.png /usr/share/icons/trisquel/${s}x${s}/places/$name.png" + done + $command + done ) << EOF +trisquel 70 +EOF + +write_cache + + === added file 'debian/prerm' --- debian/prerm 1970-01-01 00:00:00 +0000 +++ debian/prerm 2011-01-19 05:14:52 +0000 @@ -0,0 +1,11 @@ +#! /bin/sh +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then + for name in trisquel; do + update-alternatives --remove start-here.svg /usr/share/icons/gnome/scalable/places/$name.svg + done + rm -f /usr/share/icons/gnome/icon-theme.cache +fi + +