fn: sgnd_module_init_metadata
Purpose
Initialize module metadata globals from a sourced library or module comment header.
Behavior
- Parses the canonical comment header once and exposes module-scoped metadata globals.
- Uses Metadata/Shortname as the variable prefix when present.
- Falls back to the normalized filename when Shortname is omitted.
Arguments
$1 FILE - File path.
Returns
0 after populating module metadata; 1 for unreadable or unresolvable source paths.
Usage
sgnd_module_init_metadata "$source_file"
