herveus / Morsulus-tools

Morsulus's tool chain and related bits
http://www.morsulus.org
5 stars 3 forks source link

Auto-generate meaningful config.web version numbers #11

Closed mathghamhain closed 4 years ago

mathghamhain commented 4 years ago

There has long been a hard-coded version number in config.web which only got updated if a diligent developer did so deliberately.

This change replaces that with a version string generated each time you run assemble_here_docs.pl. The version string includes the local date in YYYY-MM-DD format, and a parenthetical revision-control marker pulled from Git.

The revision marker will include:

As a result, when run in the main branch when everything has been checked into Git, you should generate version strings that look like 2020-09-07 (125), meaning that you're in herveus:master at commit 125.

For comparison, when running in my development branch with uncommitted changes, I am generating version strings that look like 2020-09-07 (mathghamhain:development:154+).