diff options
author | Rodney Dawes <dobey@gnome.org> | 2008-08-20 11:06:34 -0400 |
---|---|---|
committer | Rodney Dawes <dobey@gnome.org> | 2008-08-20 11:06:34 -0400 |
commit | f7f3b2c4196253c7b9519b7788546a3355bed6dc (patch) | |
tree | 674e10fc8f655bb2648642da866716d0e68200d5 | |
parent | 38b3dcb486a59dfd97b04f51c480c187979fa1c9 (diff) |
2008-08-20 Rodney Dawes <dobey.pwns@gmail.com>
* render-bitmaps.rb:
Fix to use the #{icon_name} for the output file, rather than #{file}
-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..eb919e7 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.gsub(/$/,'.png')} #{SRC}/#{file} > /dev/null 2>&1" File.makedirs(dir) unless File.exists?(dir) system(cmd) print "." |