Previous: , Up: Directory Index   [Contents][Index]


2.21 version-handling

Function File: IDstring = format_gitID ( ID, … )

Formats a git version information string from the git ID structs ID. SWIG-wrapped LAL VCSInfo structs and octapps_gitID() structs are supported.

Examples

format_gitID(octapps_gitID());
Function File: version_string = getLalAppsVersionInfo ( lalapps_command ) ;

get version info from the given lalapps code

Examples

if isempty(file_in_path(getenv("PATH"), "lalapps_ComputeFstatistic_v2"))
  disp("skipping test: LALApps programs not available"); return;
endif
getLalAppsVersionInfo("lalapps_ComputeFstatistic_v2");
Function File: ID = octapps_gitID ( [ directory, [ name ] ] )

Returns the git-tag (commitID, date, etc) information for the specified git repository containing directory. If directory is missing, the location of the OctApps git repository is assumed. ID is a struct with fields: name, vcsId, vcsDate, vcsAuthor, vcsStatus.

Examples

octapps_gitID();
Function File: hex = versionstr2hex ( str )

Convert a version string into a hexadecimal number for easy comparisons.

Examples

assert(versionstr2hex("2.10.99.3"), 0x02109903)