pkgfmt - format a package manifest
/usr/bin/pkgfmt [-c|-d|-u] [package-manifest-file]
pkgfmt without the –c or –d options formats a package manifest in a consistent manner, including wrapping lines at 80 characters, sorting actions by type, and sorting attributes. Lines that do not parse into actions (such as macros, comments, or transforms) do not appear in sorted order.
If no arguments are given, pkgfmt reads stdin until EOF, and then writes the formatted manifest to stdout. Any manifests specified on the command line are formatted in place.
pkgfmt with the –c option checks whether the manifests are formatted in pkgfmt style. The – d option displays the differences if the file is not properly formatted.
The following options are supported:
Display a usage message.
Check whether the manifest is formatted in the pkgfmt style.
Display manifest differences from the formatted version in unified form.
Do not wrap lines at 80 characters. This option is useful for applying traditional text processing tools to package manifests.
The following exit values are returned:
The –c or –d options were specified, and one or more manifests are not in pkgfmt normal form, or an error occurred.
Invalid command line options were specified.
An unanticipated exception occurred.
See attributes(7) for descriptions of the following attributes: