blob: 190725acd008c47ff8d23e2a75aab2e491a0ddcd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
gawk -v CC=$1 '
@include "scripts/getcls.awk"
BEGIN {
FS = "\t"
CC = toupper(CC)
}
$1 == CC {
if (split($2, a, " ") == 1) {
printf "tr {td{-%s} td{-%s} td .%s colspan=\"5\" {-%s}}", \
$2, $3, getcls($4), $5
} else {
printf "tr {td{-%s @sup{-%s}} td{-%s} td .%s colspan=\"5\" {-%s}}", \
a[1], a[2], $3, getcls($4), $5
}
}
' data/extras
|