DH_INSTALLEXAMPLES(1) | Debhelper | DH_INSTALLEXAMPLES(1) |
dh_installexamples - install example files into package build directories
dh_installexamples [debhelper options] [-A] [-Xitem] [file ...]
dh_installexamples is a debhelper program that is responsible for installing examples into usr/share/doc/package/examples in package build directories.
From debhelper compatibility level 11 on, dh_install will fall back to looking in debian/tmp for files, if it does not find them in the current directory (or wherever you've told it to look using --sourcedir).
If upstream provides an examples directory, you will often want to use examples/* rather than examples in this file. The latter would create /usr/share/doc/package/examples/examples, which is rarely what you want.
Supports substitution variables in compat 13 and later as documented in debhelper(7).
Note that this is not the same as the --sourcedirectory option used by the dh_auto_* commands. You rarely need to use this option, since dh_installexamples automatically looks for files in debian/tmp in debhelper compatibility level 11 and above.
In compat 11 (or later), this option is only useful if debhelper's auto-detection of the main package is wrong. The option can also be used to silence a warning from debhelper when the auto-detection fails but the default happens to be correct.
This option cannot be used when dh_installexamples is instructed to act on multiple packages. If you need this option, you will generally need to combine it with -p to ensure exactly one package is acted on.
Note that dh_installexamples will happily copy entire directory hierarchies if you ask it to (similar to cp -a). If it is asked to install a directory, it will install the complete contents of the directory.
debhelper(7)
This program is a part of debhelper.
Joey Hess <joeyh@debian.org>
2024-03-01 | 13.14.1ubuntu5 |