Pure sh implementation of semantic versioning