PublicShow sourceversion.pl -- Manage software versions

The module deals with software versions. It currently implements two features: test whether SWI-Prolog is sufficiently new using check_prolog_version/1 and find GIT version signatures for the running server. Modules that want their version info available through the web-page can do so using a call to register_git_module/2.

Source check_prolog_version(+Required) is det
Validate the program is running under Prolog version Required or newer. Required is in numeric notation (e.g. 70718 for 7.7.18)
Errors
- prolog_version_error(Required) if Prolog does not have the required version.
Source prolog_version_atom(-Atom) is det
Atom describes the current Prolog version
Source register_git_module(+Name, +Options)
Register the directory from which the Prolog file was loaded as a GIT component about which to report version information. This should be used as a directive. Defined options:
directory(Dir)
Use Dir as the location of the GIT repository instead of the directory of the file from which this directive was called. If Dir is not absolute, it is taken relative to the directory holding the file from which this directive was called.
home_url(URL)
Used to create a link to the components home-page.
Source git_module_property(?Name, ?Property) is nondet
Property is a property of the named git-component. Defined properties are:
version(Version)
git-describe like version information
directory(Dir)
Base directory of the component
remote(URL)
Location we are cloned from
home_url(URL)
Project home

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source git_update_versions(Arg1)