From 941945837f360a2377db26d153b70d1409ec4954 Mon Sep 17 00:00:00 2001 From: Kevin Redon Date: Mon, 21 Nov 2011 10:38:06 +0100 Subject: [PATCH] hw: Rakefile can check component properties --- hardware/geda/Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hardware/geda/Rakefile b/hardware/geda/Rakefile index 91c1981..a0263e8 100644 --- a/hardware/geda/Rakefile +++ b/hardware/geda/Rakefile @@ -52,7 +52,7 @@ def read_sch(path) if element[:type]=="C" then element[:symbol] = l.split(" ")[-1] # get the default attributes (if any) - element[:bloc] = symbols[element[:symbol]] + element[:block] = symbols[element[:symbol]] end else raise "don't know how to handle line: #{l}" @@ -131,6 +131,7 @@ task :read puts name+" has no ID" if element[:block]["refdes"].include? "?" ["device","value","footprint","manufacturer","manufacturer-part","documentation","digikey-part"].each do |attribute| puts name+" has no "+attribute unless element[:block][attribute] + break if element[:block]["footprint"] =~ /^HEADER/ or element[:block]["footprint"] =~ /^JUMPER/ end end end