1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-29 18:45:19 +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 X=6000
Y=4000 Y=4000
sed "/^DEF $sym /,/^ENDDEF/p;d" "$lib" | sed "\@^DEF $sym @,/^ENDDEF/p;d" "$lib" |
awk '/^F. / { sub(/"$/, "?\"", $2); awk '/^F. / { sub(/"$/, "?\"", $2);
print substr($1, 1, 1), substr($1, 2, 1), $2, print substr($1, 1, 1), substr($1, 2, 1), $2,
$6, '$X'+$3, '$Y'+$4, $5, " 0000", $8, $9 }' >"$tmp"/fx.tmp $6, '$X'+$3, '$Y'+$4, $5, " 0000", $8, $9 }' >"$tmp"/fx.tmp