15 if [ "$SCOWL_VERSION" ]; then
17 elif git status 2>&1 > /dev/null; then
18 SCOWL_VERSION="`git log --pretty=format:'%cd-%h' --date=short -n 1 -- ..`"
24 mk-list() { ../mk-list -d final "$@"; }
26 # may be slightly faster
27 #mk-list() { ../mk-list -f -d final "$@" | (cd final; xargs cat) | sort -u; }
31 mk-list english $SIZE > en.wl0
32 mk-list en_US $SIZE > en_US-w_accents.twl
33 mk-list en_GB-ise $SIZE > en_GB-ise-w_accents.twl
34 mk-list en_GB-ize $SIZE > en_GB-ize-w_accents.twl
35 mk-list en_CA $SIZE > en_CA-w_accents.twl
36 mk-list en_AU $SIZE > en_AU-w_accents.twl
37 cat en_??-w_accents.twl | sort -u > en-w_accents.twl
39 mk-list en_US $SIZE --variants 1 > en-variant_0.wl0
40 mk-list en_US $SIZE --variants 1,2 > en-variant_1.wl0
41 mk-list en_US $SIZE --variants 1,2,3 > en-variant_2.wl0
43 mk-list en_GB $SIZE --variants 1 > en_GB-variant_0.wl0
44 mk-list en_GB $SIZE --variants 1,2 > en_GB-variant_1.wl0
46 mk-list en_CA $SIZE --variants 1 > en_CA-variant_0.wl0
47 mk-list en_CA $SIZE --variants 1,2 > en_CA-variant_1.wl0
49 mk-list en_AU $SIZE --variants 1 > en_AU-variant_0.wl0
50 mk-list en_AU $SIZE --variants 1,2 > en_AU-variant_1.wl0
54 for f in *-w_accents.twl
56 b=`basename $f -w_accents.twl`
57 src/deaccent < $f | sort -u > $b-wo_accents.twl
58 #cat $f $b-wo_accents.twl | sort -u > $b.twl
61 for f in en*-variant_*.wl0
64 src/deaccent < $f > $b.wl1
65 cat $f $b.wl1 | sort -u > $b.wl
70 # find the intersection of all *.twl word lists
72 cat *.twl | sort -u > en-common.wl.0
75 comm -12 en-common.wl.0 $f > en-common.wl
76 mv en-common.wl en-common.wl.0
78 mv en-common.wl.0 en-common.wl
85 comm -13 en-common.wl $f > $b-only.wl
88 rm -f *.wl.* *.twl *.wl{0,1} *.vwl
90 cp -p ../README aspell/doc/SCOWL-README
91 sh aspell/info.sh > aspell/info
92 sh aspell/Copyright.sh > aspell/Copyright
93 cat ../Copyright >> aspell/Copyright