joaopedrosa / yahoo.com (Joao Pedrosa) writes:
> 
> I have some source code that is terribly formatted. It needs some good
> indentation at least. But I am too lazy to do it all by hand.
> 
> Does anyone know a tool to do the job ?

I use XEmacs in Ruby mode. It has an indent function, which you can
invoke in batch mode from the command line

xemacs -batch myprog.rb -eval '(indent-region (point-min) (point-max)
nil)' -f save-buffer -kill

I hope this helps,

Tim