summaryrefslogtreecommitdiff
path: root/intl/synclang.awk
blob: 48445915389d7f6efef7df48a471e6e71d7bc697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/awk -f
BEGIN {
	FS=","
}

/^T_/ {
	s2=$2;
	for(i = 3; i <= NF; i++) s2 = s2","$i;
	aa[$1] = s2;
}

END {
	while (getline < "english.lng") {
		if (aa[$1] != "") printf("%s,%s\n", $1, aa[$1]);
		else printf("%s, NULL,\n", $1);
	}
}