From df1167fd6c026528f6e9a72bd025975ca843ac85 Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Wed, 26 Mar 2014 13:37:57 +0100 Subject: [PATCH] add sch2pcb support for multiple targets --- hardware/Rakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hardware/Rakefile b/hardware/Rakefile index 52811a4..3330d23 100644 --- a/hardware/Rakefile +++ b/hardware/Rakefile @@ -82,12 +82,14 @@ task :verify => vsch do |t| puts "not all refdes uniq" unless uniq puts "not all refdes numbered" unless numbered end +=end desc "convert schematic to pcb layout" -task :sch2pcb => vsch do |t| - sh "gsch2pcb #{t.prerequisites[0]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target}" +task :sch2pcb do + targets.each do |target| + sh "gsch2pcb #{target[:vsch]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target[:name]}" + end end -=end photos = targets.collect{|target| ["#{target[:name]}_layout-top.png","#{target[:name]}_layout-bottom.png"]}.flatten desc "render layout"