mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 05:59:43 +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
|
X=6000
|
||||||
Y=4000
|
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" |
|
sed "\@^DEF $sym @,/^ENDDEF/p;d" "$lib" |
|
||||||
awk '/^F. / { if ($1 == "F0") sub(/"$/, "?\"", $2);
|
awk '/^F. / { if ($1 == "F0") sub(/"$/, "?\"", $2);
|
||||||
print substr($1, 1, 1), substr($1, 2, 1), $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
|
LIBS:dummy
|
||||||
EELAYER 43 0
|
EELAYER 43 0
|
||||||
EELAYER END
|
EELAYER END
|
||||||
|
\$Descr A4 0 0
|
||||||
|
\$EndDescr
|
||||||
\$Comp
|
\$Comp
|
||||||
L X$sym ??
|
L X$sym ??
|
||||||
U $unit 1 00000000
|
U $unit 1 00000000
|
||||||
@ -80,5 +87,7 @@ P $X $Y
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cd "$tmp"
|
cd "$tmp"
|
||||||
eeschema --plot=ps "$tmp/tmp.sch"
|
#eeschema --plot=ps "$tmp/tmp.sch"
|
||||||
mv tmp.ps "$out"
|
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