X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_icons;h=05d63d1f953e2a5199cad8e7b3a4a68da205b29f;hb=HEAD;hp=835287a82d1da0f8963f5e7e8be8f34657f66072;hpb=c99c3d2116df31ac8b6aa9d4b81107a80bbca8a8;p=debhelper.git diff --git a/dh_icons b/dh_icons index 835287a..05d63d1 100755 --- a/dh_icons +++ b/dh_icons @@ -16,11 +16,16 @@ B [S>] [B<-n>] =head1 DESCRIPTION -dh_icons is a debhelper program that updates Freedesktop icon caches -when needed, using the update-icon-caches program provided by GTK+2.12. +B is a debhelper program that updates Freedesktop icon caches +when needed, using the B program provided by GTK+2.12. Currently this program does not handle installation of the files, though it -may do so at a later date. It takes care of adding maintainer script -fragments to call F. +may do so at a later date, so should be run after icons are installed in +the package build directories. + +It takes care of adding maintainer script fragments to call +B for icon directories. (This is not done for gnome and +hicolor icons, as those are handled by triggers.) +These commands are inserted into the maintainer scripts by L. =head1 OPTIONS @@ -46,6 +51,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { opendir(DIRHANDLE, $icondir); while (my $subdir = readdir(DIRHANDLE)) { next if $subdir =~ /^\./; + next if $subdir eq "gnome"; + next if $subdir eq "hicolor"; my $needs_cache = 0; find sub { $needs_cache = 1 if -f and (/\.png$/ or /\.svg$/ or /\.xpm$/ or /\.icon$/);