Module: sip-router Branch: master Commit: 92721dc19c76b91e0e24683a9b2b47e2e40aefb8 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=92721dc1...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Jun 24 21:15:06 2009 +0200
core: the version contains now the git sha if known
The version numbers displayed by ser -V or sercmd core.version contain now the git sha.
---
core_cmd.c | 3 ++- main.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/core_cmd.c b/core_cmd.c index 4e33d49..7f21480 100644 --- a/core_cmd.c +++ b/core_cmd.c @@ -28,6 +28,7 @@ #include <time.h> #include <sys/types.h> #include <signal.h> +#include "autover.h" #include "mem/mem.h" #include "mem/shm_mem.h" #include "sr_module.h" @@ -298,7 +299,7 @@ static const char* core_version_doc[] = {
static void core_version(rpc_t* rpc, void* c) { - rpc->add(c, "s", SERVER_HDR); + rpc->add(c, "s", SERVER_HDR " " REPO_VER ); }
diff --git a/main.c b/main.c index d3329c5..e26b3e1 100644 --- a/main.c +++ b/main.c @@ -176,6 +176,7 @@ #ifdef DEBUG_DMALLOC #include <dmalloc.h> #endif +#include "autover.h" #include "version.h"
/* define SIG_DEBUG by default */ @@ -186,7 +187,7 @@ #endif
static char id[]="@(#) $Id$"; -static char* version=SER_FULL_VERSION; +static char* version=SER_FULL_VERSION " " REPO_VER; static char* flags=SER_COMPILE_FLAGS; char compiled[]= __TIME__ " " __DATE__ ;