Go to main content
マニュアルページ セク ション 1: ユー ザーコマンド

印刷ビューの終了

更新: 2016年12月6日
 
 

pkgfmt(1)

名前

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:

–?
–-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.

終了ステータス

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.

属性

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
package/pkg
Interface Stability
Uncommitted

関連項目

pkg(5)

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