]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-icons
r2010: * dh_icons: New program to update Freedesktop icon caches. Thanks
[debhelper.git] / autoscripts / postinst-icons
diff --git a/autoscripts/postinst-icons b/autoscripts/postinst-icons
new file mode 100644 (file)
index 0000000..3c018b3
--- /dev/null
@@ -0,0 +1,7 @@
+if which gtk-update-icon-cache >/dev/null 2>&1; then\r
+       for dir in #DIRLIST#; do\r
+               if [ -f "$dir"/icon-theme.cache ]; then\r
+                       gtk-update-icon-cache --force --quiet "$dir"\r
+               fi\r
+       done\r
+fi\r