summaryrefslogtreecommitdiffhomepage
path: root/scripts/gen-pres
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-pres')
-rwxr-xr-xscripts/gen-pres22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/gen-pres b/scripts/gen-pres
new file mode 100755
index 0000000..a1e7cb1
--- /dev/null
+++ b/scripts/gen-pres
@@ -0,0 +1,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