summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-12-26 11:18:42 -0300
committerWerner Almesberger <werner@almesberger.net>2016-12-26 11:18:42 -0300
commit62e454df3e533adcf3f61259155a5cd45432a2fa (patch)
tree084acd32609d9132192b551e60ea37cd28bc4374
parenta0403277bcd5eaccfea514a74caea99470b4faf3 (diff)
downloadmisc-62e454df3e533adcf3f61259155a5cd45432a2fa.tar.gz
misc-62e454df3e533adcf3f61259155a5cd45432a2fa.tar.bz2
misc-62e454df3e533adcf3f61259155a5cd45432a2fa.zip
iox/gentab.pl: if signal name is "---", use next cell instead
This makes things work for signals that have no name in the block diagram, using the upcoming table format (with signal names for both block diagram and schematics).
-rwxr-xr-xiox/gentab.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/iox/gentab.pl b/iox/gentab.pl
index 085476a..2ac4660 100755
--- a/iox/gentab.pl
+++ b/iox/gentab.pl
@@ -131,7 +131,8 @@ for (split(/\s*\\\\\s*?\n/, $s)) {
delete $map_unused{$f[0]};
}
- ($key = $f[1]) =~ s/\s+//g;
+ $key = $f[1] =~ /^\s*---\s*/ ? $f[2] : $f[1];
+ $key =~ s/\s+//g;
$key = "$sys|$key";
$key =~ s/\\sch\b//g; # \sch is a command
$key =~ s/\\//g;