Skip to content

__nexus_build_info__

miscellaneous · scripts/miscellaneous/__nexus_build_info__.m

NEXUS_BUILD_INFO  Which CI build this installation is.

  S = NEXUS_BUILD_INFO () returns a struct with the character fields
  build (the build number), sha (the git commit it was built from) and
  date (the build date, YYYY-MM-DD).  A field is '' when unknown; all
  three are '' on a development build, which carries no stamp.

  The release pipeline writes <datadir>/nexus/BUILD-INFO (lines of
  key=value) and <datadir>/nexus/BUILD-NUMBER on Linux and Windows alike.
  The version banner, version and ver all read it here, so they agree.

  Only builtin functions are used: the --version banner calls this under
  --no-init-path, where the M-file library is not on the path.