mirror of
https://github.com/json-c/json-c.git
synced 2026-11-09 23:40:14 +08:00
json-c tags releases on json-c-0.NN branches that are never merged back to master, so `git describe --tags` from master finds the last release tagged on master itself (0.17) and the readme claimed that version. Use the tag only when HEAD is exactly on it, otherwise use the JSON_C_VERSION from json_c_version.h plus the short commit hash. Also terminate the sed `p` command with `;` before `}` so the version extraction works with BSD/macOS sed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>