7 max_level=`src/get-level max`
9 if [ $1 -ne $max_level ]
12 supplement=`src/get-all-below $1 supplement`
13 add_affixes="`src/get-all-below $1 add-affixes`"
14 add_possessive="`src/get-all-below $1 add-possessive`"
16 cat $supplement $add_affixes $add_possessive l/include/$1/* \
18 > working/words.$1.tmp
19 cp working/words.$1.tmp working/words.$1.tmp.0
21 if [ -n "$add_affixes" ] && [ $1 -le `cat l/add-affixes/max-level` ]
24 cat $add_affixes | src/filter | src/add-affixes >> working/words.$1.tmp
25 cp working/words.$1.tmp working/words.$1.tmp.1
30 if [ -n "$add_possessive" ]
32 echo "Adding possessive"
33 cat $add_possessive | src/filter | src/add-affixes just-possessive >> working/words.$1.tmp
34 cp working/words.$1.tmp working/words.$1.tmp.2
37 echo "Adding possessive"
38 cat working/words.$1.tmp \
39 | src/add-affixes use-some just-possessive \
40 > working/words.$1.tmp2
41 mv working/words.$1.tmp2 working/words.$1.tmp
44 cat working/words.$1.tmp \
45 | src/add-other-spellings \
46 | src/add-other-forms \
47 | src/add-other-spellings \
49 | comm -12 - working/words.`src/get-level next $1` \
52 #rm working/words.$1.tmp
57 | src/add-affixes use-all just-possessive \
58 | src/add-other-spellings \