I created my erlgen tool because I lacked something to do the job. Now i'm deprecating it, because such a tool was written.
Welcome Rebar! It's not simpy a generator, but a swiss knife for the complete erlang application lifecycle. Generation, dependencies, building, dialyzer, eunit, release, you name it — Rebar does it.
And to complete the beauty of it: it's written in erlang and has no dependencies itself except erlang. (for all of you ruby haters out there =))