scb: Source code beautifier

Source code beautifier

SYNTAX

scb [-cr] [-b options] filename [ filename]

Improves the look of a Sculptor source file. The program is particularly useful for tidying programs that have been automatically converted from Sculptor 2. Each filename can be a file or a directory.

-b options

Specifies the modifications to be made. The options string may be any or all of the following:

c Remove blank lines after lines that end with } (closing brace)

l Remove blank lines after lines that end with : (line labels)

m Remove blank lines after lines that begin with * (ring menu options)

o Remove blank lines after lines that end with { (opening brace)

x Remove all lines satisfying any of the above conditions

-c

Remove lines beginning with .cvt23. cvt23 is the Sculptor 2 -> Sculptor 3 conversion program.

-r

Process directories recursively.


EXAMPLE
scb -r -b ml sourcefile.r