protect

Name

protect  --  protect files and packages from being fetched

Synopsis

protect {pattern...}

Description

protect disables fetch(3) for all files and packages matching any of the glob patterns.

This comes in handy when you are working on files fetched by a product configuration script and want to protect the files and packages you are working on from being merged with new upstream versions when doing an update of the entire product.

Caveats

Glob patterns must be escaped so that they are not expanded by the shell before the call to protect.

To protect a file or package from fetch, protect must be called with a pattern that matches the file or package before the file or package is supposed to be fetched by the script.

Examples

Protect apps/init from being fetched later in the script (or in a file included later on):

    protect apps/init
    

Protect all files and packages that begin with "packages/web/".

    protect 'packages/web/*'
    

See Also

fetch(3), include(3), sub(3)