=================================================================== RCS file: /cvs/texi2mdoc/afl/mkdict.sh,v retrieving revision 1.1 retrieving revision 1.3 diff -u -p -r1.1 -r1.3 --- texi2mdoc/afl/mkdict.sh 2015/02/18 16:37:25 1.1 +++ texi2mdoc/afl/mkdict.sh 2015/02/28 00:03:21 1.3 @@ -1,8 +1,11 @@ #! /bin/sh -rm -f dict/* +rm -rf dict +mkdir dict -for f in `cat words` -do - printf "$f" > dict/$f -done +sed -n '/TEXICMD__BEGIN/,/TEXICMD__END/p' ../main.c | \ + tail -n +2 | \ + sed '$d' | \ + awk '{print $3}' | \ + sed -e 's!^\"!!' -e 's!\",$!!' | \ + while read ln ; do [ ${#ln} -gt 1 ] && printf "$ln" >"dict/$ln" ; done