[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-user: Bill of material (bom) in Win32 port



Hi,


[snip]
>Of course, I did. I did take the attribs from README. I think the problem 
>is in gnet-bom.scm file, because I did try to create SPICE netlist and it
>works. I did try it again with very simple schematics containing only 3 resist
>ors, 
>and .bom file is still empty. But gnetlist did not show any warnings or errors
>, 
>even in verbose mode. 


	There is a bug in gnet-bom.scm and gnet-bom2.scm (and perhaps the
other backends as well).  To fix it edit
c:\geda\share\gEDA\scheme\gnet-bom.scm and modify the "bom" procedure
(adding a close-output-port).

(define bom
  (lambda (output-filename)
    (let ((port (open-output-file output-filename))
          (attriblist (bom:parseconfig (open-input-file "attribs"))))
      (bom:printlist (cons 'package attriblist) port)
      (bom:components port packages attriblist)
      (close-output-port port))))

	Interestingly enough, this code works fine without the 
close-output-port on Linux/Unix.  Also, the attribs file in the readme
needs to be updated.  "label" and "name" should not really be used.
You probably only want "uref" (this is 20020527), "device" and "value"
in there.

	I will fix this in CVS (in all the backends).  Thanks.

								-Ales