$package_file_kinds[]
Lists valid kinds of package files. Defaults: dist package sources configs tools libs
package_file_kind_valid()
Returns success if argument is valid kind of package file.
$1 - Kind of package file
package_file_kind_dir()
Prints package directory for a given kind of package file ($1). Only implemented for tools, libs, and configs.
package_file_kind_ext()
Prints file extension for a given file kind ($1). Only implemented for tools, libs, and configs.
package_file_name()
Prints the path for a given kind of package file ($1) and name ($2).
package_files()
Prints all names of package files of the given kind ($1).
package_files_dist()
Prints all names of all package distribution content by calling find(1) on the files specified by the package configuration files (e.g. package.i7). The resulting list includes all directory and file names.
package_files_package()
Prints names of all plain package files.
package_files_sources()
Prints names of all package source code files.
package_files_configs()
Prints names of package configuration scripts.
package_files_tools()
Prints names of package tool scripts.
package_files_libs()
Prints names of package library scripts.
package_files_extension()
Prints names of package extension files.
package_sources_or_args()
Saves arguments ($@) in named array ($1). If none given, saves the list of package sources.
with_package_files
Run a command with all package files
$1 - Kind of files to use: dist, package, sources, configs, tools, libs
$2 - Command to run
$@ - Command arguments (optional)
with_each_package_file
Run a command with each package file
$1 - Kind of files to use: dist, package, sources, configs, tools, libs
$2 - Command to run
$@ - Command arguments (optional)
is_package_file()
Returns success if file ($1) is the given kind ($2) of package source.
is_package_lib()
Returns success if file ($1) is a library.
is_package_tool()
Returns success if file ($1) is a tool.