dev/package/files

package file introspection and management

Dependency Graph

dev/package/files: Library Dependencies

View the full-size SVG (svg) or PDF (pdf) image or graphviz source (dot)

View color source code (raw) for this file

View reStructuredText (rst) source code for this page

Library Settings

Package source file kinds

package_file_kind_valid

Returns success if $1 is valid kind of package file

package_file_kind_ext

Prints package directory for a given file kind ($1)

package_file_kind_ext

Prints file extension for a given file kind ($1)

Package source files

package_file_name

Returns file name for a given file kind ($1) and name ($2)

with_package_files

Run a command with all package files

  • $1 Kind of files to use: dist, package, sources, configs, tools, libs

$2+

Command and (optional) arguments to run: $("$@" "${kind_of_files[@]}")

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 and (optional) arguments to run: $(for_each "$*" "${files[@]}")

is_package_file

Returns success if file is the given kind of package source

is_package_lib

Returns success if file is a library

is_package_tool

Returns success if file is a tool

Source file introspection

Source file manipulations

package_file_rename

Renames package source code files.

  • $1 old name
  • $2 new name

rename library symbols

update lib_load references

  • $1 old name
  • $2 new name
  • $1 old component symbol
  • $2 new component symbol
  • $3 function

View the Script Reference Index


Generated on Tue Apr 25 21:23:16 PDT 2017 by mcsh i7 v0.18.0.