diff options
author | Luca Deri <deri@ntop.org> | 2020-03-25 12:51:06 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-03-25 12:51:06 +0100 |
commit | 47a4507d9ee6bd224d3b76e22a0efdab0b949d9d (patch) | |
tree | 51a0d24935c13ab8a804ccc479d3ac0ef84a57b1 /configure.seed | |
parent | c8a176746568f145737935912421e03d342f925f (diff) |
NDPI_API_VERSION is now computed automatically
Diffstat (limited to 'configure.seed')
-rw-r--r-- | configure.seed | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.seed b/configure.seed index ead7f7a0f..568be4f1b 100644 --- a/configure.seed +++ b/configure.seed @@ -40,9 +40,15 @@ if test -d ".git"; then : # GIT_NUM=`git log --pretty=oneline | wc -l | tr -d '[[:space:]]'` GIT_RELEASE="${PACKAGE_VERSION}-${GIT_NUM}-${GIT_TAG}" + + A=`git log src/include/ndpi_typedefs.h|wc -l` + B=`git log src/include/ndpi_protocol_ids.h|wc -l` + C=`git log src/include/ndpi_api.h.in|wc -l` + NDPI_API_VERSION=$((A+B+B)) else GIT_RELEASE="${PACKAGE_VERSION}" GIT_DATE=`date -u -r CHANGELOG.md` + NDPI_API_VERSION=`date +%s` fi AC_DEFINE_UNQUOTED(NDPI_GIT_RELEASE, "${GIT_RELEASE}", [GIT Release]) @@ -179,7 +185,8 @@ if test "${with_pcre+set}" = set; then : fi fi -AC_CONFIG_FILES([Makefile example/Makefile example/Makefile.dpdk tests/Makefile libndpi.pc src/include/ndpi_define.h src/lib/Makefile python/Makefile fuzz/Makefile]) + +AC_CONFIG_FILES([Makefile example/Makefile example/Makefile.dpdk tests/Makefile libndpi.pc src/include/ndpi_define.h src/lib/Makefile python/Makefile fuzz/Makefile src/include/ndpi_api.h]) AC_CONFIG_HEADERS(src/include/ndpi_config.h) AC_SUBST(GIT_RELEASE) AC_SUBST(NDPI_MAJOR) @@ -195,4 +202,5 @@ AC_SUBST(DL_LIB) AC_SUBST(DPDK_TARGET) AC_SUBST(HAVE_PTHREAD_SETAFFINITY_NP) AC_SUBST(CUSTOM_NDPI) +AC_SUBST(NDPI_API_VERSION) AC_OUTPUT |