You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
559 B
29 lines
559 B
15 years ago
|
#!/usr/bin/env ruby
|
||
|
#
|
||
|
# Transforms icon filenames from an icon tarball to correct format for committing
|
||
|
#
|
||
|
# (c) 2006 Mark Kretschmann <markey@web.de>
|
||
|
# Licensed under GPL V2.
|
||
|
|
||
|
|
||
|
require 'fileutils'
|
||
|
|
||
|
|
||
|
def copy_icons( res )
|
||
|
folder = "#{res}x#{res}/actions"
|
||
|
|
||
|
Dir.foreach( folder ) do |file|
|
||
|
next if file[0, 1] == "."
|
||
|
name = File.basename( file, ".png" )
|
||
|
FileUtils.cp( "#{folder}/#{file}", "hi#{res}-action-#{name}.png" )
|
||
|
end
|
||
|
end
|
||
|
|
||
|
|
||
|
|
||
|
copy_icons( "16" )
|
||
|
copy_icons( "22" )
|
||
|
copy_icons( "32" )
|
||
|
copy_icons( "48" )
|
||
|
copy_icons( "64" )
|