rake: put pnp info only on versioned file (don't change the source)

This commit is contained in:
King Kévin 2021-11-24 12:56:59 +01:00
parent b08f92c8f2
commit bf2caa21f3
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ rule ".bom.csv" => ".sch" do |t|
end
desc "generate pick-and-place file from board"
rule ".cpl.csv" => [".lht", "mass_prop.sh", "pnp_fab.tab"] do |t|
rule ".cpl.csv" => [".versioned.lht", "mass_prop.sh", "pnp_fab.tab"] do |t|
sh "./mass_prop.sh #{t.prerequisites[0]} pnp_fab.tab" # add fab placement offsets
sh "pcb-rnd -x XY --xyfile #{t.name} --xy-unit mm --format 'JLCPCB' --vendor jlcpcb #{t.prerequisites[0]}" # export XY file in JLCPCB format
end