Le jeudi 22 septembre 2005 à 00:43 +0200, Josselin Mouette a écrit : > Package: debhelper > Severity: wishlist > > Please find attached a dh_icons script. It creates maintainer script > snippets to update the icon cache files in /usr/share/icons/*/, > according to the Freedesktop.org specification.
I think it is more than time for a second try. We really need that icon
cache stuff, as too many third party applications are breaking Debian
icons by installing the cache.
I have changed the script to use Loïc's idea to only update the cache if
it is already present. This will allow us a two-phase update:
* introduction of dh_icons in debhelper
* update of GNOME packages with icons in hicolor or gnome
* mass bug-reporting for remaining packages
* once all packages are updated, remove the checks for file
presence in the debhelper's postinst/postrm scripts, which then
applies to newly-generated packages
* finally, switch icon theme packages to using dh_icons
=> world domination
Cheers,
--
.''`.
: :' : We are debian.org. Lower your prices, surrender your code.
`. `' We will add your hardware and software distinctiveness to
`- our own. Resistance is futile.
dh_icons
Description: Perl program
if which gtk-update-icon-cache >/dev/null 2>&1 ; then
for dir in #DIRLIST#; do
if [ -f "$dir"/icon-theme.cache ]; then
gtk-update-icon-cache --force --quiet "$dir"
fi
done
fi
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
signature.asc
Description: Ceci est une partie de message numériquement signée

