On 17/05/2019 11:12, Loris Bennett wrote:
Hi,

If I have a version

   1.2.3

and for 'sources' need to convert this to

  v1r2.3

is there a version template which will give me the revision, i.e. '3'?

I can obviously just chop up the result from the version template as
needed, but the x.y.z versioning scheme is so common, so I was a little
surprised not to find, say, version_revision as template.

Currently, we only have %(version_major)s and %(version_minor)s templates, but adding a %(version_revision)s as well makes sense I guess...

If you're up for tackling this yourself, the place to be is https://github.com/easybuilders/easybuild-framework/blob/master/easybuild/framework/easyconfig/templates.py .


regards,

Kenneth

Reply via email to