void-packages/helper-templates/gtk-update-icon-cache.sh
Juan RP 6767460858 Added hicolor-icon-theme-0.10 and its acompannion helper.
--HG--
extra : convert_revision : 885f1c2f7759caa86909aed1831522d44b1e159f
2008-10-11 02:03:45 +02:00

14 lines
443 B
Bash
Executable file

#
# This helper updates the GTK's theme icon cache as requested by
# any template.
#
gtkupdate_iconcache_cmd=$PKGFS_MASTERDIR/bin/gtk-update-icon-cache
iconcache_theme_dir=$PKGFS_MASTERDIR/share/icons/hicolor
if [ -x $gtkupdate_iconcache_cmd -a -d $iconcache_theme_dir ]; then
$gtkupdate_iconcache_cmd -f -t $iconcache_theme_dir && \
echo "=> Updated GTK's hicolor icon cache theme."
fi
unset gtkupdate_iconcache_cmd iconcache_theme_dir