Fix automake icons installation

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head r14.0.0
Slávek Banko 10 years ago
parent 4dd97fad9e
commit 04db460623

@ -1533,6 +1533,7 @@ sub tag_ICON()
( (
'action' => 'actions', 'action' => 'actions',
'app' => 'apps', 'app' => 'apps',
'category' => 'categories',
'device' => 'devices', 'device' => 'devices',
'filesys' => 'places', 'filesys' => 'places',
'mime' => 'mimetypes' 'mime' => 'mimetypes'
@ -1582,12 +1583,13 @@ sub tag_ICON()
} }
my $dir = $dir_hash{$prefix} . "/" . $type_hash{$type}; my $dir = $dir_hash{$prefix} . "/" . $type_hash{$type};
if ($newfile =~ /-[^\.]/) { #-- does not convert from dashes to folders inside icon names
my $tmp = $newfile; #if ($newfile =~ /-[^\.]/) {
$tmp =~ s/^([^-]+)-.*$/$1/; # my $tmp = $newfile;
$dir = $dir . "/" . $tmp; # $tmp =~ s/^([^-]+)-.*$/$1/;
$newfile =~ s/^[^-]+-//; # $dir = $dir . "/" . $tmp;
} # $newfile =~ s/^[^-]+-//;
#}
if (!defined $directories{$dir}) { if (!defined $directories{$dir}) {
$install .= "\t\$(mkinstalldirs) \$(DESTDIR)\$($destdir)/$dir\n"; $install .= "\t\$(mkinstalldirs) \$(DESTDIR)\$($destdir)/$dir\n";

Loading…
Cancel
Save