]> git.donarmstrong.com Git - debhelper.git/blob - autoscripts/postrm-icons
r2010: * dh_icons: New program to update Freedesktop icon caches. Thanks
[debhelper.git] / autoscripts / postrm-icons
1 if [ "$1" = "remove" ]; then\r
2         for dir in #DIRLIST#; do\r
3                 if [ -d "$dir" ]; then\r
4                         if [ -f "$dir"/index.theme ] && \\r
5                            [ -f "$dir"/icon-theme.cache ] && \\r
6                            which gtk-update-icon-cache >/dev/null 2>&1\r
7                         then\r
8                                 gtk-update-icon-cache --force --quiet "$dir"\r
9                         else\r
10                                 rm -f "$dir"/icon-theme.cache\r
11                                 rmdir -p --ignore-fail-on-non-empty "$dir"\r
12                         fi\r
13                 fi\r
14         done\r
15 fi\r