5 echo "usage $0 geda-bom # output on stdout"
8 cat $1 | @AWK@
'{print toupper($2)" "toupper($3)" "toupper($4)" "toupper($1)}'\
12 format1="%3d %-19s %-10s %-10s ";\
18 printf(format1 format3, 0, "Device", "Value", "Footprint", "Urefs");\
22 if($1==f1 && $2==f2 && $3==f3) {\
25 if(f1!="" && f2!="" && f3!="") { \
26 printf(format1, ct, f1, f2, f3);\
27 for(i=0; i<ct-1; i++) {\
28 if((i+1)%urefsperline) {\
29 printf(format2, array[i]);\
31 printf(format5 format4, array[i], "");\
34 printf(format3, array[i]);\
36 f1=$1;f2=$2;f3=$3;ct=0;array[ct++]=$4;\
40 if(f1!="" && f2!="" && f3!="") { \
41 printf(format1, ct, f1, f2, f3);\
42 for(i=0; i<ct-1; i++) {\
43 if((i+1)%urefsperline) {\
44 printf(format2, array[i]);\
46 printf(format5 format4, array[i], "");\
49 printf(format3, array[i]);\