diff --git a/configure.ac b/configure.ac index 87a108959..fb1210edf 100644 --- a/configure.ac +++ b/configure.ac @@ -8,16 +8,32 @@ define(ver_micro, m4_esyscmd([ GITREV=$(git rev-list $GITTAG..HEAD --count); printf "$GITREV" ])) + +# sync with current git +define(ver_git, m4_esyscmd([ + GITBRANCH=$(git rev-parse --abbrev-ref HEAD); + GITDESCRIBE=$(git describe --always --tags --dirty); + printf "$GITDESCRIBE $GITBRANCH" +])) + +define(ver_date, m4_esyscmd([ + BUILTDATE=$(date); + printf "$BUILTDATE" +])) + define(rel_cycle, "ver_major.0") AC_INIT([neutrino],[ver_major.ver_minor.ver_micro],[https://www.neutrino-images.de]) AM_INIT_AUTOMAKE([nostdinc foreign]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) +AC_DEFINE(PACKAGE_RELEASE_CYCLE, rel_cycle, [Release cycle information; used in update code; only relevant for flash image releases ]) + AC_DEFINE(PACKAGE_VERSION_MAJOR, ver_major, [Major version number]) AC_DEFINE(PACKAGE_VERSION_MINOR, ver_minor, [Minor version number]) AC_DEFINE(PACKAGE_VERSION_MICRO, ver_micro, [Micro version number]) -AC_DEFINE(PACKAGE_RELEASE_CYCLE, rel_cycle, [Release cycle information; used in update code; only relevant for flash image releases ]) +AC_DEFINE(PACKAGE_VERSION_GIT, "ver_git", [internal vcs version info]) +AC_DEFINE(PACKAGE_VERSION_DATE, "ver_date", [internal built date]) TUXBOX_APPS TUXBOX_APPS_DIRECTORY