[sr-dev] [tracker] Task opened: Tag each build with unique commit ID

sip-router admin at sip-router.org
Tue Mar 23 17:00:22 CET 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Ovidiu Sas (osas) 

Attached to Project - sip-router
Summary - Tag each build with unique commit ID
Task Type - Improvement
Category - utils
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - This patch is for kamailio, but it can be applied to the main sip-router build system.
The idea is to tag the build with the latest commit identifier in order to easily identify builds made out of a source tree.
Since the commit identifier is long (40 chars), using the first 7 chars of the commit identifier should be enough.
The tag will populate the EXTRAVERSION variable during 'make cfg' with the output of 'git rev-parse --short kamailio_3.0' for kamailio flavour or with 'git rev-parse --short HEAD' for vanilla flavour.


diff --git a/Makefile.defs b/Makefile.defs
index 97824b5..5b5c18a 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -155,7 +155,7 @@ INSTALL_FLAVOUR=$(FLAVOUR)
 VERSION = 3
 PATCHLEVEL = 0
 SUBLEVEL = 1
-EXTRAVERSION =
+EXTRAVERSION := $(shell git rev-parse --short kamailio_3.0)
 
 # memory debugger switcher
 # 0 - off (release mode)
@@ -164,7 +164,7 @@ MEMDBG ?= 0
 
 SER_VER = $(shell expr $(VERSION) \* 1000000 + $(PATCHLEVEL) \* 1000 + \
                        $(SUBLEVEL) )
-RELEASE:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
+RELEASE:=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(EXTRAVERSION)
 OS := $(shell uname -s | sed -e s/SunOS/solaris/ -e s/CYGWIN.*/cygwin/ \
                 | tr "[A-Z]" "[a-z]")
 



Regards,
Ovidiu Sas

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

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