]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add fixwhite(1).
authorEd Schouten <ed@FreeBSD.org>
Mon, 6 Feb 2012 10:23:11 +0000 (10:23 +0000)
committerEd Schouten <ed@FreeBSD.org>
Mon, 6 Feb 2012 10:23:11 +0000 (10:23 +0000)
commit509b0c2039b8d1458d4e349b091209ffebf15ee1
treed40be7b98bb23310a74364400a35fac1c468adf2
parent0ca2381d9bd2b2388b42fe2397188ed2729a458b
Add fixwhite(1).

This small utility can be used to `sanitize' the whitespace in source
code. It does the following things:

Global:
- Remove empty lines at the beginning and the end of a file.
- Merge successive empty lines into a single empty line.

Per-line:
- Remove trailing whitespace.
- Merge spaces preceeding tabs into the tabs.

It operated on stdin/stdout. This means that if you use vi(1), you can
just run :%!fixwhite to reorganize the file.
tools/tools/fixwhite/Makefile [new file with mode: 0644]
tools/tools/fixwhite/fixwhite.1 [new file with mode: 0644]
tools/tools/fixwhite/fixwhite.c [new file with mode: 0644]