From: handa Date: Wed, 27 Aug 2003 00:19:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: XML-base~90 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=dc5186d4daba188727873f4680c9a838fb9513b3;p=m17n%2Fm17n-docs.git *** empty log message *** --- diff --git a/utils/dbdata.awk b/utils/dbdata.awk new file mode 100644 index 0000000..be6fd3f --- /dev/null +++ b/utils/dbdata.awk @@ -0,0 +1,19 @@ +BEGIN { + print "/***"; +} + +/".*\.(tbl|mim|tab|flt)"/ { + FROM=match($0, "\".*\.(tbl|mim|tab|flt)\"") + 1; + LEN=RLENGTH-2; + FILE=substr($0, FROM, LEN); + system("sed -n '/^[;#][;#]*
  • /,/^$/s/^[;#][;#]* *//p' "FILE); + printf "\n"; +} + +/^;; / { + print substr($0, 4); +} + +END { + print "*/"; +}