diff --git a/tools/development/add_icons.rb b/tools/development/add_icons.rb index 9bc8e0725..5b13f186c 100755 --- a/tools/development/add_icons.rb +++ b/tools/development/add_icons.rb @@ -7,6 +7,15 @@ require "fileutils" $base_dir = File.absolute_path(File.dirname(__FILE__) + "/../..") ARGV.each do |file_name| + if %r{/scalable/}.match(file_name) + target = "#{$base_dir}/share/icons/scalable/" + file_name.gsub(/.*\//, '') + + puts "#{file_name} → #{target}" + FileUtils.cp file_name, target + + next + end + size = FastImage.size file_name if !size puts "Warning: couldn't determine size for #{file_name}"