[sr-dev] [tracker] Comment added: Tag each build with unique commit ID

sip-router admin at sip-router.org
Tue Mar 23 17:49:11 CET 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#43 - Tag each build with unique commit ID
User who did this - Andrei Pelinescu-Onciul (andrei)

----------
It's already supported. Try -V, e.g.:
../ser -V
version: ser 3.0.99-dev1 (i386/linux) a120c1-dirty

See commit GIT#51690b9. Basically each compilation attemp looks to see ig .git was modified and if it was it regenerates autover.h.
main.c and the core_cmd.c depend on autover.h, so any change will rebuild them.
autover.h contains REPO_VER, which is printed by -V or by the core.version rpc.
Besides using the first 6 letters of the commit, it will also have "-dirty" appended if the build is from a repository with non-commited changes.

Your solution uses only the top commit on a give branch (won't work if I change branches), requires a make cfg and will rebuild everything.

I don't think we need to add the commit id to the tar.gz (one could always use tar  -Ozxf  foo.tar.gz autover.h).
----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=43#comment41

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list