Software Package Builder 3.0 User's Guide
)GVVKPI5VCTVGFYKVJ5QHVYCTG2CEMCIG$WKNFGT
7UKPIVJG52$%QOOCPF.KPG+PVGTHCEG
Chapter 4 47
spb -f psf_file -V 2> psferrors
and to suppress the notes, enter:
spb -f psf_file -V -s ne 2> psferrors
where psf_file is the name of the generated PSF and psferrors is the
file where validation errors are stored. Packagers can then examine this
file and determine the appropriate course of action. You can debug the
PSF using the SPB GUI with packaging policy help located in the Policy
Help tab. The return values of the validation also indicate which
message was the most severe message.
Similarly, to perform validation on a depot, enter the following command
in your process:
spb -d some.home.hp.com:/myDepot -V 2> depoterrors
and to suppress the warnings and notes, enter:
spb -f psf_file -V -s wn 2> psferrors
where some.home.hp.com:/myDepot is the name of the depot and
depoterrors is the file where validation errors are stored. Verifiers can
then examine this file and determine the appropriate course of action.
IMPORTANT SPB cannot read a PSF from stdin, therefore, it cannot be used in a pipe
symbol ( | ). The following command will not work correctly:
cat psf_file | spb -V
Return Values
Upon completion of the validation process using the CLI, SPB returns
one of the following values to indicate the severity of the message:
0 Normal exit. Validation performed with no errors.
1 Validation found a warning.
2 Validation found an error.
For additional information on this and other SPB command line options,
refer to the spb (1M) manpage.