From 5f91e46914359248f62c25f7cb427ec279b2e0f5 Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Mon, 1 Nov 2010 16:41:23 -0500 Subject: [PATCH] skypopen: modifying Makefile.am and skypopen.h to report in revision tag of debug lines the last commit of both mod_skypopen.c and skypopen_protocol.c (so you can have your own commits in the same dir) --- src/mod/endpoints/mod_skypopen/Makefile.am | 2 +- src/mod/endpoints/mod_skypopen/skypopen.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_skypopen/Makefile.am b/src/mod/endpoints/mod_skypopen/Makefile.am index 56d5a82e2a..b572b58e20 100644 --- a/src/mod/endpoints/mod_skypopen/Makefile.am +++ b/src/mod/endpoints/mod_skypopen/Makefile.am @@ -2,6 +2,6 @@ include $(top_srcdir)/build/modmake.rulesam MODNAME=mod_skypopen mod_LTLIBRARIES = mod_skypopen.la mod_skypopen_la_SOURCES = mod_skypopen.c skypopen_protocol.c -mod_skypopen_la_CFLAGS = $(AM_CFLAGS) -DSKYPOPEN_SVN_VERSION=\"`git log -1 --format="%h" .`\" -I../../../../libs/spandsp/src -I../../../..//libs/tiff-3.8.2/libtiff +mod_skypopen_la_CFLAGS = $(AM_CFLAGS) -DSKYPOPEN_C_VER=\"`git log -1 --format="%h" skypopen_protocol.c`\" -DMODSKYPOPEN_C_VER=\"`git log -1 --format="%h" mod_skypopen.c`\" -I../../../../libs/spandsp/src -I../../../..//libs/tiff-3.8.2/libtiff mod_skypopen_la_LIBADD = $(switch_builddir)/libfreeswitch.la mod_skypopen_la_LDFLAGS = -L../../../../libs/spandsp/src -avoid-version -module -no-undefined -shared -lX11 -lspandsp diff --git a/src/mod/endpoints/mod_skypopen/skypopen.h b/src/mod/endpoints/mod_skypopen/skypopen.h index ccff65b0af..90f5df0bc9 100644 --- a/src/mod/endpoints/mod_skypopen/skypopen.h +++ b/src/mod/endpoints/mod_skypopen/skypopen.h @@ -77,6 +77,12 @@ #define SAMPLERATE_SKYPOPEN 16000 #define SAMPLES_PER_FRAME SAMPLERATE_SKYPOPEN/50 +#ifdef SKYPOPEN_C_VER +#ifdef MODSKYPOPEN_C_VER +#define SKYPOPEN_SVN_VERSION MODSKYPOPEN_C_VER"|"SKYPOPEN_C_VER +#endif +#endif + #ifndef SKYPOPEN_SVN_VERSION #define SKYPOPEN_SVN_VERSION SWITCH_VERSION_REVISION #endif /* SKYPOPEN_SVN_VERSION */