mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Icon theme builder fix
This commit is contained in:
parent
8901c59050
commit
011180b70b
@ -17,13 +17,14 @@ rule ConvertIconTheme
|
||||
{
|
||||
local size category ;
|
||||
for size in $(2) {
|
||||
local sname = "$(size)x$(size)" ;
|
||||
for category in $(3) {
|
||||
SvgToPngDirectory [ FDirName $(1) $(size) $(category) ] : [ FDirName $(1) scalable $(category) ] : $(size) ;
|
||||
SvgToPngDirectory [ FDirName $(1) $(sname) $(category) ] : [ FDirName $(1) scalable $(category) ] : $(size) ;
|
||||
}
|
||||
|
||||
# let 'jam clean' removes created directories since SvgToPngDirectory will remove
|
||||
# only deepest, e.g. '16/actions' will be removed only 'actions'; here '16' will be removed too
|
||||
CleandirSafe clean : [ FDirName $(1) $(size) ] ;
|
||||
CleandirSafe clean : [ FDirName $(1) $(sname) ] ;
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,8 +35,9 @@ rule InstallIconTheme
|
||||
local size category icon_list directory ;
|
||||
|
||||
for size in $(2) {
|
||||
local sname = "$(size)x$(size)" ;
|
||||
for category in $(3) {
|
||||
directory = [ FDirName $(1) $(size) $(category) ] ;
|
||||
directory = [ FDirName $(1) $(sname) $(category) ] ;
|
||||
icon_list = [ Wildcard $(directory) : *.png : $(directory) ] ;
|
||||
InstallEdeIcons $(directory) : $(icon_list) ;
|
||||
}
|
||||
@ -52,6 +54,5 @@ ICON_CATEGORIES = actions apps categories devices emblems mimetypes places statu
|
||||
# this will reduce jam's startup time
|
||||
if $(BUILD_ICON_THEMES) = 1 {
|
||||
ConvertIconTheme "edeneu" : $(ICON_SIZES) : $(ICON_CATEGORIES) ;
|
||||
InstallIconTheme "edeneu" : $(ICON_SIZES) : $(ICON_CATEGORIES) ;
|
||||
}
|
||||
|
||||
InstallIconTheme "edeneu" : $(ICON_SIZES) : $(ICON_CATEGORIES) ;
|
||||
|
Loading…
Reference in New Issue
Block a user