summaryrefslogtreecommitdiffhomepage
path: root/scripts/gen-pres
blob: a1e7cb169c07beaeef19292499662af500242911 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

gawk '
@include "scripts/getcls.awk"

BEGIN {
	FS = "\t"
}

{
	printf "trX { td .missing colspan=\"1\" {-%s}", $1
	split($2, a, / /)
	for (i = 1; i <= length(a); i++)
		printf "td .%s colspan=\"2\" {-%s}", getcls(a[i]), $3
	print "}"
}

END {
	print "__MARKER__"
}
' data/world/pds.us \
| scripts/last-of-design.sed