Skip to content

Makefile: Allow lightweight tags in MXQ_VERSION_GIT #70

Merged
merged 1 commit into from
Jan 5, 2018

Commits on Jan 5, 2018

  1. Makefile: Allow lightweight tags in MXQ_VERSION_GIT

    If we build from a git repository, the build system adds the output of
    `git describe` to the version information.
    
    However, per default `git describe` searches for annotated tags
    only. Since version 0.22.5, we draft releases from github enterprise,
    which creates lightweight tags. For this reason, the version string
    ammendment was always based on the 0.22.4 release:
    
        buczek@theinternet:~/git/mxq (master)$ ./mxqd --version
        mxqd - MXQ v0.25.4 (beta) [0.22.4-134-g3ae9361]
          by Marius Tolzmann <marius.tolzmann@molgen.mpg.de> 2013-2016
             and Donald Buczek <buczek@molgen.mpg.de> 2015-2016
          Max Planck Institute for Molecular Genetics - Berlin Dahlem
    
    Add `--tags` to `git describe` so that the version string is based on
    the newest tag.
    
        mxqd - MXQ v0.25.4 (beta) [0.25.4-4-g3ae9361]
          by Marius Tolzmann <marius.tolzmann@molgen.mpg.de> 2013-2016
             and Donald Buczek <buczek@molgen.mpg.de> 2015-2016
          Max Planck Institute for Molecular Genetics - Berlin Dahlem
    donald committed Jan 5, 2018
    Configuration menu
    Copy the full SHA
    6df49ca View commit details
    Browse the repository at this point in the history