#306 tpserver-cpp should inbed the git commit version

Feature_Request
open
Lee Begg
4
2008-03-14
2008-03-02
No

It would be really good if tpserver-cpp included the git version in some form. This would allow you to check what version of tpserver-cpp you are running and hence better report bugs.

Discussion

  • Tim 'mithro' Ansell

    • summary: tpserver-py should inbed the git commit version --> tpserver-cpp should inbed the git commit version
     
  • Lee Begg

    Lee Begg - 2008-03-13

    Logged In: YES
    user_id=82757
    Originator: NO

    How?

     
  • Tim 'mithro' Ansell

    Logged In: YES
    user_id=18538
    Originator: YES

    Use something like this in your Makefile

    version:
    echo "#define GIT_HUMAN_VERSION \"`git-describe`\" " > ./src/version.h
    echo "#define GIT_FULL \"`git log -n1 | sed -e's/commit //' | head -n1`\" " >> ./src/version.h

     
  • Lee Begg

    Lee Begg - 2008-03-14

    Logged In: YES
    user_id=82757
    Originator: NO

    While that is fine when building from GIT, it doesn't work from a tarball. (And shouldn't the target be version.h?)

    There have been no instances of problems caused by using old versions. So I don't really see the necessity of adding this at this time. People not developing the server should use released version. (And yes, I shouldn't take so long between versions).

     
  • Lee Begg

    Lee Begg - 2008-03-14
    • priority: 5 --> 4
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks