diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2014-10-20 04:19:46 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-17 02:39:39 +0100 |
commit | 9e00e0d30347a00cef3a163e9f093c72530d353e (patch) | |
tree | d078fee89e0feae56b7a4b2dc2395c2525e68a3d | |
parent | 27050271c1d0245d3442299a435c641b6704017c (diff) | |
download | admin-9e00e0d30347a00cef3a163e9f093c72530d353e.tar.gz admin-9e00e0d30347a00cef3a163e9f093c72530d353e.zip |
Fix automake icons installation
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 04db460623e1f235e7239f08fdcc2d0ef72636af)
-rw-r--r-- | am_edit | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1528,11 +1528,12 @@ sub tag_ICON() my $type = $prefix; $type =~ s/^.*-([^-]+)$/$1/; $prefix =~ s/^(.*)-[^-]+$/$1/; - + my %type_hash = ( 'action' => 'actions', 'app' => 'apps', + 'category' => 'categories', 'device' => 'devices', 'filesys' => 'filesystems', 'mime' => 'mimetypes' @@ -1580,15 +1581,16 @@ sub tag_ICON() print STDERR "unknown icon prefix $prefix in $printname\n"; next; } - + my $dir = $dir_hash{$prefix} . "/" . $type_hash{$type}; - if ($newfile =~ /-[^\.]/) { - my $tmp = $newfile; - $tmp =~ s/^([^-]+)-.*$/$1/; - $dir = $dir . "/" . $tmp; - $newfile =~ s/^[^-]+-//; - } - + #-- does not convert from dashes to folders inside icon names + #if ($newfile =~ /-[^\.]/) { + # my $tmp = $newfile; + # $tmp =~ s/^([^-]+)-.*$/$1/; + # $dir = $dir . "/" . $tmp; + # $newfile =~ s/^[^-]+-//; + #} + if (!defined $directories{$dir}) { $install .= "\t\$(mkinstalldirs) \$(DESTDIR)\$($destdir)/$dir\n"; $directories{$dir} = 1; |