data/dbdata.txt: ${DBDATA} ${DBIMAGE} @M17NDB@/mdb.xml utils/expand-mdb.awk
[ -d data ] || mkdir data
@AWK@ -v M17NDB=@M17NDB@ -f utils/expand-mdb.awk @M17NDB@/mdb.xml > data/expanded-mdb.xml
+ xsltproc -xinclude utils/description-en.xsl data/expanded-mdb.xml > $@
data/dbformat.txt: ${DBFORMAT} utils/dbformat.sh
utils/dbformat.sh ${DBFORMAT} > $@
BEGIN {
SUBDIR["input-method-*"] = "MIM/";
SUBDIR["font-layouter-*"] = "FLT/";
- SUBDIR["language-name-*"] = "LANGDATA/";
SUBDIR["standard-language-iso639"] = "LANGDATA/";
+ IGNORED["language-name-*"] = 1;
KEY="";
XINCLUDEFMT="<xi:include xmlns:xi=\"http://www.w3.org/2001/XInclude\" parse=\"xml\" href=\"%s\"/>\n";
}
}
/<filename>[^<]*<\/filename>/ {
- from = match($0, "<filename>[^<]*</filename>");
- to = from + RLENGTH;
- printf "%s", substr($0, 1, from - 1);
- TAIL = substr($0, to);
- FILE = substr($0, from + 10, to - from - 21);
- COMMAND = "cd "M17NDB"/"SUBDIR[KEY]"; ls "FILE;
- COMMAND | getline LINE;
- print "<filename>"LINE"</filename>";
- printf XINCLUDEFMT, M17NDB"/"SUBDIR[KEY]LINE;
- while (COMMAND | getline LINE) {
+ if (IGNORED[KEY])
+ print;
+ else {
+ from = match($0, "<filename>[^<]*</filename>");
+ to = from + RLENGTH;
+ printf "%s", substr($0, 1, from - 1);
+ TAIL = substr($0, to);
+ FILE = substr($0, from + 10, to - from - 21);
+ COMMAND = "cd "M17NDB"/"SUBDIR[KEY]"; ls "FILE;
+ COMMAND | getline LINE;
print "<filename>"LINE"</filename>";
printf XINCLUDEFMT, M17NDB"/"SUBDIR[KEY]LINE;
+ while (COMMAND | getline LINE) {
+ print "<filename>"LINE"</filename>";
+ printf XINCLUDEFMT, M17NDB"/"SUBDIR[KEY]LINE;
+ }
+ if (length(TAIL) > 0 && ! match(TAIL, "^[ \t]*$"))
+ print TAIL;
}
- if (length(TAIL) > 0 && ! match(TAIL, "^[ \t]*$"))
- print TAIL;
next;
}