comment out unadapted code
This commit is contained in:
parent
7bd4a051db
commit
3bedd38825
|
@ -52,7 +52,7 @@ targets.each do |target|
|
||||||
CLOBBER.include("#{target[:name]}_*.sch")
|
CLOBBER.include("#{target[:name]}_*.sch")
|
||||||
CLOBBER.include("#{target[:name]}_*.pcb")
|
CLOBBER.include("#{target[:name]}_*.pcb")
|
||||||
end
|
end
|
||||||
|
=begin
|
||||||
desc "print schematic and layout (as pdf)"
|
desc "print schematic and layout (as pdf)"
|
||||||
task :print => ["#{target}_schematic.pdf","#{target}_layout.pdf"]
|
task :print => ["#{target}_schematic.pdf","#{target}_layout.pdf"]
|
||||||
CLEAN.include("#{target}_schematic.pdf")
|
CLEAN.include("#{target}_schematic.pdf")
|
||||||
|
@ -105,6 +105,7 @@ task :reformat => GERBERS do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
=end
|
||||||
|
|
||||||
# ================
|
# ================
|
||||||
# helper functions
|
# helper functions
|
||||||
|
@ -164,7 +165,7 @@ tagerts.each do |target|
|
||||||
sh "sed -i 's/\\(revision=\\)\\$Revision\\$/\\1#{sch_rev}/' #{t.name}"
|
sh "sed -i 's/\\(revision=\\)\\$Revision\\$/\\1#{sch_rev}/' #{t.name}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
=begin
|
||||||
desc "copy layout to version it: include version, date, and run teardrops when available"
|
desc "copy layout to version it: include version, date, and run teardrops when available"
|
||||||
tagerts.each do |target|
|
tagerts.each do |target|
|
||||||
file tagert[:vpcb] => target[:pcb] do |t|
|
file tagert[:vpcb] => target[:pcb] do |t|
|
||||||
|
@ -224,7 +225,7 @@ GERBERS.each do |gerber|
|
||||||
sh "pcb -x gerber --gerberfile #{target} --all-layers #{t.prerequisites.join(' ')}"
|
sh "pcb -x gerber --gerberfile #{target} --all-layers #{t.prerequisites.join(' ')}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
=end
|
||||||
ATTACHMENTS = ["cern_ohl_v_1_2_howto.pdf","CHANGES.txt","LICENSE.txt","PRODUCT.txt"]
|
ATTACHMENTS = ["cern_ohl_v_1_2_howto.pdf","CHANGES.txt","LICENSE.txt","PRODUCT.txt"]
|
||||||
desc "create archive with release files"
|
desc "create archive with release files"
|
||||||
file "hardware-release_v#{version}.tar.gz" => ATTACHMENTS+["lib",vsch,vpcb,"notes.txt","#{target}_schematic.pdf","#{target}_layout.pdf","#{target}_layout-top.png","#{target}_layout-bottom.png"]+GERBERS do |t|
|
file "hardware-release_v#{version}.tar.gz" => ATTACHMENTS+["lib",vsch,vpcb,"notes.txt","#{target}_schematic.pdf","#{target}_layout.pdf","#{target}_layout-top.png","#{target}_layout-bottom.png"]+GERBERS do |t|
|
||||||
|
|
Loading…
Reference in New Issue