sub

Name

sub  --  fetch a package and add it to the SUBDIRS variable

Synopsis

sub {package} [rev=revision] [root=url] [dest=directory]

Description

sub fetches package, using fetch(3), and adds it to the SUBDIRS variable used by the rules file. package should be the name of a package containing a makefile that includes the rules file.

Adding a package to the SUBDIRS variable means that it will be built and installed as a part (subsystem) of the product. It is important that make_rules(3) also is used, since it includes the rules file that contains the makefile magic that recurses all SUBDIRS.

Options

dest=directory

The destination directory of the package to fetch.

rev=revision

The revision of the package to fetch.

root=url

The repository root of the package to fetch.

Example

Add the package apps/init revision R1_3_4 to the product:

    sub apps/init rev=R1_3_4
    

See Also

fetch(3), make_rules(3), functest(3)