summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2008-09-05 00:31:58 +0200
committerJakub Steiner <jimmac@gmail.com>2008-09-05 00:31:58 +0200
commit9d4753968af73fa5f223f111da5b4365f9a87bc2 (patch)
tree1802ed6c5697e7246cddbfa07e187d1f3655f13c
parent3ff7dc021f9fbd13dbda1449a3737b88a952a728 (diff)
parentf7f3b2c4196253c7b9519b7788546a3355bed6dc (diff)
Merge branch 'master' of jimmac@users.freedesktop.org:/git/tango/tango-icon-library
-rwxr-xr-xrender-bitmaps.rb2
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 "."