Thanks to John Cummings.

This commit is contained in:
rsc 2005-10-29 16:26:32 +00:00
parent 9f1fdc1287
commit d1f529f46f
27 changed files with 4344 additions and 0 deletions

33
src/cmd/upas/bayes/mkfile Normal file
View file

@ -0,0 +1,33 @@
</$objtype/mkfile
TARG=addhash bayes msgtok
HFILES=
OFILES=
LIB=
BIN=/$objtype/bin/upas
</sys/src/cmd/mkmany
# msg tokenizer
$O.regen: regcomp.$O dfa.$O
dfa.$O regcomp.$O regen.$O: dfa.h
/mail/lib/classify.re: $O.regen
if(~ $cputype $objtype)
$O.regen >x && cp x $target
$O.msgtok: dfa.$O
# msg database
msgdbx.$O msgdb.$O: msgdb.h
# hash table creator/dumper
$O.msgdb: msgdbx.$O
$O.msgclass: hash.$O msgdbx.$O
$O.addhash: hash.$O
$O.bayes: hash.$O