Script init metadata

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_script_init_metadata

Purpose

Initialize script metadata globals from a script comment header.

Behavior

  • Parses the active executable comment header into SGND_SCRIPT_* runtime metadata aliases.
  • Uses Metadata/Shortname when present, otherwise the normalized script filename.
  • Leaves already populated SGND_SCRIPT_* values unchanged.

Outputs (globals): SGND_SCRIPT_PRODUCT SGND_SCRIPT_TITLE SGND_SCRIPT_DESCRIPTION SGND_SCRIPT_DESC SGND_SCRIPT_SHORTNAME SGND_SCRIPT_VERSION / BUILD / CHECKSUM / SOURCE / TYPE / PURPOSE SGND_SCRIPT_DEVELOPERS / COMPANY / CLIENT / COPYRIGHT / LICENSE

Returns

0 after reading available metadata; 1 if SGND_SCRIPT_FILE is unset or unreadable.

Usage

  sgnd_script_init_metadata