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