ckolivas / lrzip

Long Range Zip
http://lrzip.kolivas.org
GNU General Public License v2.0
619 stars 76 forks source link

lrzip version 0.631 is 82 commits past last tag #180

Closed pete4abw closed 3 years ago

pete4abw commented 3 years ago

Issue tracking is difficult without an accurate version tag. Pull request #179 replaces hard versioning in configure.ac with a shell script that will return a complete version IF tag is not equal to HEAD commit. The current

$ lrzip -V
lrzip version 0.631

will now show

$ lrzip -V
lrzip version 0.631-82-ff04150

where 82 represents that HEAD is 82 commits after the most recent tag.

The program util/gitdesc.sh can easily be modified to return different values, for example:

$ lrzip -V
lrzip version 0.6.31-82-ff04150

where the micro version is split off. A more proper way. This is the new format in version 0.7 of lrzip.

gitdesc.sh can be run standalone too from within the git directory.

$ util/gitdesc.sh all
0.631-82-ff04150
$ util/gitdesc.sh all -r
0.47-860-ff04150

If used with the -r option. gitdesc.sh will return a version from the last release version (annotated tag). In this case, 860 commits! However, there should be no release versions in Release version 0.

pete4abw commented 3 years ago

Issue resolved with merge of PR #179