]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-icons
Updated French man page translation. Closes: #685560
[debhelper.git] / autoscripts / postrm-icons
index 3765560cb370e029f68646bf591d2fefb3be3e5f..9e00f03978dc2bcf09081043460fa8e601534874 100644 (file)
@@ -1,15 +1,3 @@
-if [ "$1" = "remove" ]; then\r
-       for dir in #DIRLIST#; do\r
-               if [ -d "$dir" ]; then\r
-                       if [ -f "$dir"/index.theme ] && \\r
-                          [ -f "$dir"/icon-theme.cache ] && \\r
-                          which gtk-update-icon-cache >/dev/null 2>&1\r
-                       then\r
-                               gtk-update-icon-cache --force --quiet "$dir"\r
-                       else\r
-                               rm -f "$dir"/icon-theme.cache\r
-                               rmdir -p --ignore-fail-on-non-empty "$dir"\r
-                       fi\r
-               fi\r
-       done\r
-fi\r
+if which update-icon-caches >/dev/null 2>&1 ; then
+       update-icon-caches #DIRLIST#
+fi