mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
add_icons.rb: support for adding scalable versions
This commit is contained in:
parent
0aee0cc2a6
commit
7698d43a55
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user