get_installed_tracked_exec_files – print existing executables of a package, used for ROOT directory.

Description

Method prints absolute paths with text executable files of current package, which need to be reflected in ROOT, each on new line. Files are taken from directories, printed by get_installed_tracked_exec_dirs(3). Names are chosen by templates, given in any_root_exec_name_template. Default value is *-config *-config-*. So files of interest for hello-world-1.0, built for amd64, would be:
/build/image/amd64/hello-world-1.0/usr/bin/hello-config
And for hello-world-2.0 with new API:
/build/image/amd64/hello-world-2.0/usr/bin/hello-config-2

Printed files must be executable scripts. To determine that the file(1) utility is used like that:

    file -b --mime-type filename 
If printed type of a file is contained in option any_root_exec_editable, file is considered suitable. Default value of the option is:
text/ application/xml application/x-shellscript inode/symlink

Thus binary executable files do not go to ROOT. If such files are needed, they must be installed in host environment at general default location like /usr/bin/.

Writing

The method writes to T.

Variables

The method uses any-api(7) variables:
T

The method uses engine variables:

empty_DIR

Options

The following options affect the method:
any_root_exec_name_template
any_root_exec_editable

Interfaces

The method calls any-map(7) interfaces:
get_installed_tracked_exec_dirs(3)

See also