For user documentation see rebuild-all -h.


Current API version 2.0


Modules interface

Modules are executables in modules_path (/etc/rebuild-all/modules/").

Synopsis:
module action outputfile errorfile [options]

Module is required to provide at least these actions:
	list_actions:                    Lists supported actions.
	get_api:                         Return the api version for the module.

Other possible actions are:
	find_broken_packages:            Finds all packages that are broken.
	find_possibly_broken_packages:   Finds all packages that may be broken, but can't be verified.
	find_all_packages:               Finds all packages concerning this module.
	list_options_help:               Lists supported options one entry per line as tab-delimited triple of option, option parameter and help string.

All functional module output is written to outputfile, which can be assumed to exist.
All non recoverable errors are written to errorfile.

All options may be ignored. Possible options are:
	-v                  Verbose (more than one may be given to increase verbosity)
	-d                  Debug
	-o <option string>  Set module spesific options


Package manager interface

Package manager modules are sourceable bash files in action_path ("/etc/rebuild-all/actions/") that contain functions.

Functions are:
	rebuild:             Rebuild packages.
	pretend_rebuild:     Pretend to rebuild these packages and display the results.

Parameters for these functions are packages to be rebuilt in syntax.
	category/package
	=category/package-<pms4-compatible version>
	category/package:slot

