diff options
author | joeyh <joeyh> | 2007-07-08 22:16:15 +0000 |
---|---|---|
committer | joeyh <joeyh> | 2007-07-08 22:16:15 +0000 |
commit | 780fefcdcfd21f335378899f2e20d92978b476e7 (patch) | |
tree | 8b31dea658bc3c86e5b55932c137dfaa855e6dd9 /autoscripts/postrm-icons | |
parent | 02f72dd6d954aa64c5a617cc7fb1647cbefd6562 (diff) |
r2010: * dh_icons: New program to update Freedesktop icon caches. Thanks
to Josselin Mouette, Ross Burton, Jordi Mallach, and Loïc Minier.
Closes: #329460
* Note that as a transitional measure, dh_icons will currently only update
existing caches, and not create and new caches. Once everything is
updating the icon caches, this will be changed. See #329460 for the full
plan.
Diffstat (limited to 'autoscripts/postrm-icons')
-rw-r--r-- | autoscripts/postrm-icons | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/autoscripts/postrm-icons b/autoscripts/postrm-icons new file mode 100644 index 00000000..3765560c --- /dev/null +++ b/autoscripts/postrm-icons @@ -0,0 +1,15 @@ +if [ "$1" = "remove" ]; then
+ for dir in #DIRLIST#; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir"/index.theme ] && \
+ [ -f "$dir"/icon-theme.cache ] && \
+ which gtk-update-icon-cache >/dev/null 2>&1
+ then
+ gtk-update-icon-cache --force --quiet "$dir"
+ else
+ rm -f "$dir"/icon-theme.cache
+ rmdir -p --ignore-fail-on-non-empty "$dir"
+ fi
+ fi
+ done
+fi
|