script used to generate erlang files