mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-22 18:05:32 +02:00
genkicat/sym2xps: use eeplot for rendering (still has issues)
This commit is contained in:
parent
eb409c67da
commit
50dd3bc0fe
@ -56,6 +56,11 @@ EOF
|
||||
X=6000
|
||||
Y=4000
|
||||
|
||||
#
|
||||
# @@@ Known bug: doesn't handle spaces in component names (F1) well.
|
||||
# Example: usb_a_plug.lib had F1 "USB_A_PLUG " 0 ...
|
||||
#
|
||||
|
||||
sed "\@^DEF $sym @,/^ENDDEF/p;d" "$lib" |
|
||||
awk '/^F. / { if ($1 == "F0") sub(/"$/, "?\"", $2);
|
||||
print substr($1, 1, 1), substr($1, 2, 1), $2,
|
||||
@ -68,6 +73,8 @@ EESchema Schematic File Version 2 date Mon Mar 26 09:29:33 2012
|
||||
LIBS:dummy
|
||||
EELAYER 43 0
|
||||
EELAYER END
|
||||
\$Descr A4 0 0
|
||||
\$EndDescr
|
||||
\$Comp
|
||||
L X$sym ??
|
||||
U $unit 1 00000000
|
||||
@ -80,5 +87,7 @@ P $X $Y
|
||||
EOF
|
||||
|
||||
cd "$tmp"
|
||||
eeschema --plot=ps "$tmp/tmp.sch"
|
||||
mv tmp.ps "$out"
|
||||
#eeschema --plot=ps "$tmp/tmp.sch"
|
||||
eeplot -o "$tmp/tmp.pdf" "$tmp/tmp.pro"
|
||||
pdftops "$tmp/tmp.pdf" "$tmp/tmp.ps"
|
||||
mv "$tmp/tmp.ps" "$out"
|
||||
|
Loading…
Reference in New Issue
Block a user