conditional_reexec
conditional_reexec
fetches a file or package and
re-executes the caller script if the specified file or package does
not exist in the local tree or if fetch was forced by option.
It is meant to be used to fetch the specified revision of the functions file (this file) if fetch is forced by option. Using this function will eliminate the need of option parsing in the configure(1)-script to force update of the functions file when fetch is forced by option.
dest
=directoryThe destination directory of the file or package to fetch.
rev
=revisionThe revision of the file or package to fetch.
root
=urlThe repository root of the file or package to fetch.
When the script is given the option
--ignore-cvs-revisions
,
conditional_reexec
will only update
package to HEAD if it
does not exist. Therefore, either --force-fetch
or
--update
must also be given if you want to make sure
that revision HEAD of
package is checked out.