My script would be rather useless in your situation as majority of the script was generation of the inflections themselves (using various grammatical rules and lists of irregular forms - I assume that is what make-infl script from your link does too) and then modification the html's on the fly. Besides that, it was just a quick hack, so you would hardly be able to reuse the code.
In your situation, since you already have the inflections (infl.txt), all you need to do is to feed them to your html files. Your html files from point 3 already contain the following tag for each entry:
Code:
<idx:orth>word</idx:orth>
All you need is to modify it to this:
Code:
<idx:orth>word
<idx:infl inflgrp="group1">
<idx:iform name="infl1" value="wordform1" />
<idx:iform name="infl2" value="wordform2" />
...
<idx:iform name="infl3" value="wordformN" />
</idx:infl>
</idx:orth>
(for each "word V/M: wordform1 | wordform2 | ... | wordformN" line from your infl.txt file)