chiark / gitweb /
word list generation
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Sep 2013 20:43:49 +0000 (21:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Sep 2013 20:43:49 +0000 (21:43 +0100)
.gitignore
Makefile

index b25c15b81fae06e1c55946ac6270bfdb293870e8..94d00b86b45f098963c67ac058295b99f174f0ba 100644 (file)
@@ -1 +1,2 @@
 *~
+words.*
index 534dbc29ff882f96e070daf749ccf796bc486438..3a2cec4eed8769539bdb250c29d3c34b0a3caa57 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,11 @@
 #
 
-WORDLIST_LEN=3000
+all:           words.final
 
-all:   words.list
-
-o= >$@.tmp && mv -f $@.tmp
+o= >$@.tmp && mv -f $@.tmp $@
 
 words.final:   words.interim Makefile
-               grep -Ff forbidden-words $< >$@.1.tmp
-               head - $o
+               grep -vxFf forbidden-words $< $o
 
 words.interim: massage-lemmas lemma.al
                ./$^ $o