| United States-English |
|
|
|
![]() |
Software Package Builder 2.0 User's Guide: for HP-UX 11i v1 and 11i v2 > Chapter 4 Getting Started with Software Package BuilderUsing the SPB Command Line Interface |
|
From the command line interface, you can perform the following tasks: 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:
ExampleTo 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 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.
ExampleTo validate the PSF file located in /opt/SPB/demo/demo1, you would type the following: spb -f /opt/SPB/demo/demo1 -V For packagers with automated processes, the build process usually includes generating a PSF. To take advantage of SPB's validation capability, include the SPB validation command after the PSF generation step in the automated process. ExampleTo perform validation on the generated PSF, invoke the following command in your process: spb -f psf_file -V 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.
Upon completion of the validation process using the CLI, SPB returns one of the following values to indicate the severity of the message:
For additional information on this and other SPB command line options, refer to the spb (1m) manpage. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||