added task to generate release files
This commit is contained in:
parent
0433c60a71
commit
40f0aed3a2
|
@ -14,3 +14,4 @@ notes.txt
|
|||
*.pcb.bak
|
||||
*.gbr
|
||||
*.cnc
|
||||
hardware-release*.tar.*
|
||||
|
|
11
pcb/Rakefile
11
pcb/Rakefile
|
@ -27,8 +27,13 @@ vpcb = "#{target}_v#{version}.#{pcb_rev.to_s.rjust(3,'0')}.pcb"
|
|||
# main tasks
|
||||
# ==========
|
||||
|
||||
desc "main building task"
|
||||
task :default => [:version,:print,:notes,:photo,:gerber]
|
||||
|
||||
desc "create release file"
|
||||
task :release => "hardware-release_v#{version}.tar.gz"
|
||||
CLOBBER.include("hardware-release_v#{version}.tar.gz")
|
||||
|
||||
desc "set version in schematic and layout"
|
||||
task :version => [vsch,vpcb]
|
||||
CLEAN.include(vsch)
|
||||
|
@ -198,3 +203,9 @@ GERBERS.each do |gerber|
|
|||
sh "pcb -x gerber --gerberfile #{target} --all-layers #{t.prerequisites.join(' ')}"
|
||||
end
|
||||
end
|
||||
|
||||
ATTACHMENTS = ["cern_ohl_v_1_2_howto.pdf","CHANGES.txt","LICENSE.txt","PRODUCT.txt"]
|
||||
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|
|
||||
sh "tar -acf '#{t.name}' #{t.prerequisites.join(' ')}"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue