NOTE

Example

Getting Started with Software Package Builder

Using the SPB Command Line Interface

Using the SPB Command Line Interface

From the command line interface, you can perform the following tasks:

Edit a PSF

Validate a PSF

Specify a user-defined packaging policy rules file

Editing from the CLI

You can make edits to a PSF from the command line.

To replace an attribute value for a specified file at the command line, use the following two options in combination:

The -foption specifies the PSF to be edited or validated.

The -eoption specifies the attribute value(s) to be replaced in the PSF indicated by the -foption.

The modified PSF is written to stdout unless re-directed to a file using the -ooption.

To replace the revision of product SPBdemo in the PSF file /opt/SPB/demo with revision A.2.0, you would enter the following:

spb -f /opt/SPB/demo -e SPBdemo revision A.2.0 -o

SPBdemoRev2.psf

Validating from the CLI

To validate a specified file from the command line, use the following two options in combination: The -foption specifies the PSF to be edited or validated. The -Voption validates the PSF indicated by the -foption.

The -foption specifies the PSF to be edited or validated.

The -Voption validates the PSF indicated by the -foption.

Chapter 4

41