add sch2pcb support for multiple targets

This commit is contained in:
Kevin Redon 2014-03-26 13:37:57 +01:00
parent 39e73bf642
commit df1167fd6c
1 changed files with 5 additions and 3 deletions

View File

@ -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"