add sch2pcb support for multiple targets
This commit is contained in:
parent
39e73bf642
commit
df1167fd6c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue