[adwaita-icon-theme] symbolic: render script tweaks



commit f62619ace9949fc87163a3f30973111989240fba
Author: Jakub Steiner <jimmac gmail com>
Date:   Thu May 7 19:41:01 2020 +0200

    symbolic: render script tweaks

 render-symbolic.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/render-symbolic.rb b/render-symbolic.rb
index 4c181345..73dd0ff6 100755
--- a/render-symbolic.rb
+++ b/render-symbolic.rb
@@ -24,15 +24,15 @@ def chopSVG(icon)
                # extract the icon
                cmd = "#{INKSCAPE} -g #{icon[:file]} --select #{icon[:id]} 
--verb=\"FitCanvasToSelection;EditInvertInAllLayers"
                cmd += 
";EditDelete;EditSelectAll;SelectionUnGroup;SelectionUnGroup;SelectionUnGroup;StrokeToPath;FileVacuum"
-               cmd += ";FileSave;FileQuit;\"" 
+               cmd += ";FileSave;FileQuit;\" > /dev/null 2>&1" 
                system(cmd)
                # remove bounding rectangle
                #bounding rectangle is now a path. needs to be removed
                svgcrop = Document.new(File.new(icon[:file], 'r'))
                svgcrop.root.each_element("//path") do |path|
-           puts(path.attributes['style'])
+           #puts(path.attributes['style'])
            if path.attributes['style'].include? 'fill:none;'
-                   puts "DEBUG: found rect to remove #{path}"
+                   #puts "DEBUG: found rect to remove #{path}"
                    path.remove
            end
     end


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]