I wrote a bash function that takes a semantic version string and bumps
the version number. It supports all 3 layers. I needed it for the deploy
script I was working on. It’s fairly trivial, I just thought I would
share it.
Semantic versioning is a 3 number version string consisting of a major,
minor, and revision number. This function allows you to bump any one of
those numbers and reset the earlier numbers. Semantic versioning tends
to be a fairly popular scheme and is mandatory for certain frameworks
like WordPress.