pkgfmt.1 revision 2494
te
Copyright (c) 2007, 2011, Oracle and/or its
affiliates. All rights reserved.
pkgfmt 1 "28 Jul 2011" "SunOS 5.11" "User Commands"
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:

-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 TYPEATTRIBUTE VALUE
Availabilitypackage/pkg
Interface StabilityUncommitted
SEE ALSO

pkg(5)

http://hub.opensolaris.org/bin/view/Project+pkg/