1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-28 14:16:25 +02:00

genex/sym2xps: use @ as regexp delimiter, to accommodate symbols names with /

This commit is contained in:
Werner Almesberger 2012-04-12 00:05:12 -03:00
parent 3bbd0e75f4
commit dcee3901f5

View File

@ -56,7 +56,7 @@ EOF
X=6000
Y=4000
sed "/^DEF $sym /,/^ENDDEF/p;d" "$lib" |
sed "\@^DEF $sym @,/^ENDDEF/p;d" "$lib" |
awk '/^F. / { sub(/"$/, "?\"", $2);
print substr($1, 1, 1), substr($1, 2, 1), $2,
$6, '$X'+$3, '$Y'+$4, $5, " 0000", $8, $9 }' >"$tmp"/fx.tmp