optados-developers / optados

Official Repository of the Optados code
http://www.optados.org
20 stars 22 forks source link

OptaDOS should respond to --version #27

Closed ajm143 closed 2 years ago

ajm143 commented 4 years ago

In a similar way to how CASTEP does it.

ajm143 commented 4 years ago

Write a bash script to scrape git log. Use it to make a buildinfo.f90, which contains a user defined type. Edit optados.f90 under the "help" catcher line -- call a subroutine at the bottom of the file.

ml-evs commented 4 years ago

git describe --tags gives you <last tag>-<number of commits since last tag>-<last commit hash in short form>, if that's helpful.

ajm143 commented 2 years ago

Note to self (+world+dog) Can't do this until I have tagged the previous releases, see #20. Otherwise what @ml-evs said.

ajm143 commented 2 years ago

Solved by PR #45.