{{{ #!html
mkencap [options] \
[ -e [-n] [-a "encapinfo_directive ..."] ] \
[ -c [-o outfile] ] pkgspec
If none of these options are selected, mkencap will create an encapinfo file and a tar archive.
If none of the -DUPCBIT options are selected, the default is -DUPCB.
Note: The preprocessing command must point to GNU m4. If the first m4 binary in your PATH is not GNU m4, you must use either the MKENCAP_M4_COMMAND environment variable or the -m option to specify the path to GNU m4.
This option can be used to simply override which m4 binary is used, as in:
mkencap -m /usr/local/bin/m4 -b pkgspec.ep
However, it can also be used to add options to be passed to the m4 command, as in:
mkencap -m "m4 -Dmacro=value" -b pkgspec.ep
If the build tree path contains the string "%p", it will be replaced with the platform name.
This option is useful for debugging problems caused by m4 preprocessing.
When adding the contact field, mkencap will first check the environment variable ENCAP_CONTACT. If unset, it will use the username of the invoking user and the hostname of the host it was run on.
For Encap 2.0 packages, the default is pkgspec.tar.gz.
For Encap 2.1 packages, the default is pkgspec-encap-platform.tar.gz. The platform string will be read from the encapinfo file.
To create an encapinfo file for the package "pkg-3.0" containing the directives "exclude bin/burfle" and "linkdir lib/pkg", and create an archive of the package in your home directory: