[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Functional blocks and PCB format changes
Phil Frost <indigo@xxxxxxxxxxx> writes:
> I would point out a valid YAML representation of the above is also:
>
> {pin: {pinNumber: 2, pinName: rst, x1: 1234, y1: 4321, x2: 2345, y2: 4321, layer: component}}
> Neither sed nor awk can process XML or YAML the right way in all cases
> without reimplementing a libyaml or libxml in sed or awk.
This one-line form is pretty accessible to sed and awk.
I'd write an awk script that transforms arbitrary YAML into this form,
and include that in any commandline pipe of one-liner processing. At
the next save from PCB it will be back to the original format, so that
subversion diff will happy. I like that format.
--
Stephan
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user