The pifproto command creates a prototype file that describes the PIF product. The prototype file is used by the pifmk command to generate a PIF product. The prototype file is created in the current working directory. The name of the prototype file is:
prodname.platform.@prm
You can specify that the PIF product should be created immediately after the run of the pifproto command, or later. For individual configurations, you can modify the prototype file manually.
Note: A temporary subdirectory .pif* is created during the execution of the pifproto command. If the command is successfully terminated, this subdirectory will be automatically deleted. If the command fails, the subdirectory remains in the directory tree.
This command has the following format:
pifproto d proddir a platform n prodname v version b basedir
[c comment] [s vendorname] [B buildID] [I preinstallprocedure] [i postinstallprocedure] [r preuninstallprocedure] [R postuninstallprocedure] [T template] [p | S] [o]
Specifies the name of the destination directory, where the item is stored. The current working directory must be outside of the specified proddir.
Specifies the name of the operating system platform of the target computer where the PIF product shall be installed.
Specifies the name of the PIF product to package. Product names that differ by lowercase and uppercase letters cause different PIF products.
Specifies the version of the PIF product to create.
Specifies the directory where the PIF product should be relatively installed, for example, /usr/bin, or a variable name, for example, $SDPATH.
Specifies a product-specific comment.
Identifies the product supplier or product vendor.
Specifies the build, where buildID can consist of a maximum of 1024 alphanumeric characters, but must not contain any control characters like carriage return (CR) and line feed (LF).
Specifies the shell script or executable file, which is called before the PIF product has been installed.
Specifies the shell script or executable file, which is called after the PIF product has been installed.
Specifies the shell script or executable file, which is called before the PIF product is removed.
Specifies the shell script or executable file, which is called after the PIF product is removed.
Specifies a template used as a framework for the creation of an individual product setup. A template is formatted as a prototype file.
Specifies that the PIF product is automatically created after the run of the pifproto command by internally executing the pifmk command. Symbols of binary files are discarded automatically.
Specifies that a self-installing PIF product is automatically created after the run of the pifproto command by internally executing the pifmk and pifself commands.
Specifies overwrite. If an item with the same name already exists in the destination directory, it is overwritten.
Exit status:
Displays the status of the command execution. The value zero (0) means OK, any non-zero value indicates Error.
Example: Create a prototype file
The following command creates a prototype file named test-pif.AIX.@prm, which contains the files located under the /home/bin directory.
pifproto -a AIX -d /home/bin -b /usr/bin -v 1.0.0.0 -n test-pif
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|