Date:2016-09-04 18:01:37 (7 years 2 months ago)
Author:Werner Almesberger
Commit:50dd3bc0fe3f016966657935d6f0b4bdfdcfd84a
Message:genkicat/sym2xps: use eeplot for rendering (still has issues)

Files: genkicat/sym2xps (3 diffs)

Change Details

genkicat/sym2xps
5656X=6000
5757Y=4000
5858
59#
60# @@@ Known bug: doesn't handle spaces in component names (F1) well.
61# Example: usb_a_plug.lib had F1 "USB_A_PLUG " 0 ...
62#
63
5964sed "\@^DEF $sym @,/^ENDDEF/p;d" "$lib" |
6065  awk '/^F. / { if ($1 == "F0") sub(/"$/, "?\"", $2);
6166    print substr($1, 1, 1), substr($1, 2, 1), $2,
...... 
6873LIBS:dummy
6974EELAYER 43 0
7075EELAYER END
76\$Descr A4 0 0
77\$EndDescr
7178\$Comp
7279L X$sym ??
7380U $unit 1 00000000
...... 
8087EOF
8188
8289cd "$tmp"
83eeschema --plot=ps "$tmp/tmp.sch"
84mv tmp.ps "$out"
90#eeschema --plot=ps "$tmp/tmp.sch"
91eeplot -o "$tmp/tmp.pdf" "$tmp/tmp.pro"
92pdftops "$tmp/tmp.pdf" "$tmp/tmp.ps"
93mv "$tmp/tmp.ps" "$out"

Archive Download the corresponding diff file

Branches:
master



interactive