Software Package Builder 1.0 User's Guide

Getting Started with Software Package Builder
Using the SPB Command Line Interface
Chapter 4 41
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 -f option specifies the PSF to be edited or validated.
•The -e option specifies the attribute value(s) to be replaced in the
PSF indicated by the -f option.
NOTE The modified PSF is written to stdout unless re-directed to a file using
the -o option.
Example 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 -f option specifies the PSF to be edited or
validated. The -V option validates the PSF indicated by the -f option.
•The -f option specifies the PSF to be edited or validated.
•The -V option validates the PSF indicated by the -f option.