You need a version of emacs in your path newer then 0.22 - I have only tested with GNU Emacs 23.3.1
./verliog-pretty < ugly-verilog.v > pretty-verilog.v
./vhdl-pretty < ugly-vhdl.vhd > pretty-vhdl.vhdThe scripts launches Emacs, loads the correct "file mode" and calls the reformatting command for that mode.
This repository includes the following to "Emacs Mode" for formatting VHDL/Verilog.
- Emacs VHDL Mode -- http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html
- Mac's Verilog Mode -- http://www.verilog.com/verilog-mode.html || http://www.veripool.org/projects/verilog-mode/wiki/Intro