diff options
Diffstat (limited to 'render-bitmaps.rb')
-rwxr-xr-x | render-bitmaps.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render-bitmaps.rb b/render-bitmaps.rb index b7fde8f..b206362 100755 --- a/render-bitmaps.rb +++ b/render-bitmaps.rb @@ -14,7 +14,7 @@ def renderit(file) puts "#{file}:#{icon.attributes['inkscape:label']} #{context}/#{icon_name}" icon.each_element("rect") do |box| dir = "#{box.attributes['width']}x#{box.attributes['height']}/#{context}" - cmd = "#{INKSCAPE} -i #{box.attributes['id']} -e #{dir}/#{file.gsub(/\.svg$/,'.png')} #{SRC}/#{file} > /dev/null 2>&1" + cmd = "#{INKSCAPE} -i #{box.attributes['id']} -e #{dir}/#{icon_name}.png #{SRC}/#{file} > /dev/null 2>&1" File.makedirs(dir) unless File.exists?(dir) system(cmd) print "." |