From 1e5dbb4133ff7d1c677f5bc71a4d2d0e966c0c33 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 12 Apr 2012 18:09:55 -0300 Subject: [PATCH] genex/sym2xps: only add question mark to F0, not to all fields --- genex/sym2xps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genex/sym2xps b/genex/sym2xps index 955399d..13a2c82 100755 --- a/genex/sym2xps +++ b/genex/sym2xps @@ -57,7 +57,7 @@ X=6000 Y=4000 sed "\@^DEF $sym @,/^ENDDEF/p;d" "$lib" | - awk '/^F. / { sub(/"$/, "?\"", $2); + awk '/^F. / { if ($1 == "F0") sub(/"$/, "?\"", $2); print substr($1, 1, 1), substr($1, 2, 1), $2, $6, '$X'+$3, '$Y'+$4, $5, " 0000", $8, $9 }' >"$tmp"/fx.tmp #F field_number "text" orientation posX posY size Flags (see below)