swpackage.1m (2010 09)

s
swpackage(1M) swpackage(1M)
readable by older versions of SD.
Which
layout_version
the SD commands write is controlled by the layout_version
option or by
specifying the
layout_version
attribute in the PSF file.
See sd(4), the description of the
layout_version
option in the following section and in sd(5) for more
information. See sd(4) for more information on
PSF files.
Options
swpackage supports the following options:
-p Previews a package session without actually creating or modifying the distribution tape.
-v Turns on verbose output to stdout. Verbose output is enabled by default, see the
ver-
bose
option below.
-V List the data model revision that swpackage
supports. By default, swpackage
always packages using the latest data model revision.
-C session_file
Save the current options and operands only to the session_file. You can enter a relative
or absolute path with the file name. The default directory for session files is
$HOME/.sw/sessions/
. Without this option, by default, the session file is saved only
in the default directory
$HOME/.sw/sessions/
.
You can recall a session file with the
-S option.
-d directory|device
(Obsolete but allowed for backward compatibility. Use the
@ directory | device operand
instead.)
If creating a distribution directory, this option defines the pathname of the directory .If
creating a distribution tape, this option defines the device file on which to write the distri-
bution. When creating a distribution tape, the tape device (file) must exist, and the
-x
media_type =tape option must be specified (see below).
You can also specify that the
swpackage output be "piped" to an external command
using:
swpackage -d "| <command> " -x media_type=tape -s <source>
The | symbol and command must be quoted because it is interpreted by swpackage
and not the shell.
-f software_file
Read the list of software_selections from software_file instead of (or in addition to) the
command line.
-s product_specification_file|directory
The source PSF describes the product, subproduct, fileset, and file definitions used to
build a software product from a set of source files.
The source can also be an existing directory depot (which already contains products).
-S session_file
Execute swpackage based on the options and operands saved from a previous session,
as defined in session_file. You can save session information to a file with the -C option.
-x option=value
Set the session option to value and override the default value (or a value in an alternate
options_file specified with the -X option). Multiple -x options can be specified.
-X option_file
Read the session options and behaviors from options_file .
Software Selections
If specified, the software selections cause
swpackage to only (re)package those software selections from
the full set defined in the source product_specification_file.Ifnosoftware_selections are specified, then
swpackage will (re)package all the products defined in the source product_specification_file.
The
swpackage command supports the following syntax for each software_selection:
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010