Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2488, September 2012)

source directory in the fileset. (Partial wildcarding is not supported, e.g. file dm* to indicate all
files starting with “dm”.)
All attributes for the destination file object are taken from the source file, unless a
file_permission keyword is active (this keyword is described below).
The user can specify multiple
directory source[=destination]
file *
pairs to gather all files from different source directories into a single fileset.
If you do not want to recursively include all files and directories, use the explicit file specification.
The directory keyword must have been previously specified before the file * specification
can be used. If not, swpackage generates an error.
Error Messages
When processing the directory recursively, swpackage encounters the following errors:
Cannot search directory (permission denied)
Cannot read the file (permission denied)
Unsupported file type encountered
10.4.2.4.11.5 PSF Extensions
A PSF can contain extended file definitions. SD currently supports exclude and include files.
Exclude files let you explicitly exclude files that would otherwise be included in the PSF. The syntax
is:
exclude filename
An exclude file can only be specified after a file definition. The file listed after the exclude keyword
is excluded from the current context (for example, from a recursive file definition or wildcard).
If the filename specifies a directory, then all files below that directory are excluded.
Include files let you include file definitions from a separate file. The syntax is:
file < filename
The include file must be separated from the file keyword by a less than sign (<).
10.4.2.5 Re-Specifying Files
In addition to being able to specify files as a group (with file *) for general attributes, the PSF
also allows you to “re-specify” files within that definition to modify individual attributes.
For example, suppose you wanted to specify all the files in a fileset which contained 100 files. All
these files were to be recursively “discovered” and packaged into the fileset. Most of them would
have the same owner, group, and mode (and other file attributes).
Out of those 100 files, there might be five that are volatile (that is, you don’t care if they get
modified or deleted). So, instead of listing all 100 files individually, and using the -v option for
the five, you could specify all 100 with file * and then modify the five individually in their own
way. For example, with files 1, 2, 3, 4, and 5:
directory source = /product file *
file -v 1
file -v 2
file -v 3
file -v 4
file -v 5
194 Creating Software Packages