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 uniq" unless uniq
|
||||||
puts "not all refdes numbered" unless numbered
|
puts "not all refdes numbered" unless numbered
|
||||||
end
|
end
|
||||||
|
=end
|
||||||
|
|
||||||
desc "convert schematic to pcb layout"
|
desc "convert schematic to pcb layout"
|
||||||
task :sch2pcb => vsch do |t|
|
task :sch2pcb do
|
||||||
sh "gsch2pcb #{t.prerequisites[0]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target}"
|
targets.each do |target|
|
||||||
|
sh "gsch2pcb #{target[:vsch]} --elements-dir #{File.dirname(__FILE__)}/lib/footprints --skip-m4 --output-name #{target[:name]}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
=end
|
|
||||||
|
|
||||||
photos = targets.collect{|target| ["#{target[:name]}_layout-top.png","#{target[:name]}_layout-bottom.png"]}.flatten
|
photos = targets.collect{|target| ["#{target[:name]}_layout-top.png","#{target[:name]}_layout-bottom.png"]}.flatten
|
||||||
desc "render layout"
|
desc "render layout"
|
||||||
|
|
Loading…
Reference in New Issue