man pages section 1: User Commands

Exit Print View

Updated: July 2014
 
 

pkgfmt(1)

Name

pkgfmt - format a package manifest

Synopsis

/usr/bin/pkgfmt [-c|-d|-u] [package-manifest-file]

Description

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.

Options

The following options are supported:

–?
–-help

Display a usage message.

–c

Check whether the manifest is formatted in the pkgfmt style.

–d

Display manifest differences from the formatted version in unified form.

–u

Do not wrap lines at 80 characters. This option is useful for applying traditional text processing tools to package manifests.

Exit Status

The following exit values are returned:

0

Command succeeded.

1

The –c or –d options were specified, and one or more manifests are not in pkgfmt normal form, or an error occurred.

2

Invalid command line options were specified.

99

An unanticipated exception occurred.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
package/pkg
Interface Stability
Uncommitted

See also

pkg(5)

https://java.net/projects/ips/pages/Home