mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
make config: add package defines for better git sync and build date
This commit is contained in:
16
configure.ac
16
configure.ac
@@ -4,15 +4,29 @@ define(ver_minor, 11)
|
||||
define(ver_micro, 1)
|
||||
define(neutrino_rel_cycle, ver_major.ver_minor)
|
||||
|
||||
# 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"
|
||||
]))
|
||||
|
||||
AC_INIT(Tuxbox-Neutrino,ver_major.ver_minor.ver_micro)
|
||||
AM_INIT_AUTOMAKE([nostdinc foreign])
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
|
||||
|
||||
AC_DEFINE(RELEASE_CYCLE, "2.5", [Release cycle information; used in update code; only relevant for flash image releases ])
|
||||
AC_DEFINE(RELEASE_CYCLE, "3.0", [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_VERSION_GIT, "ver_git", [internal vcs version info])
|
||||
AC_DEFINE(PACKAGE_VERSION_DATE, "ver_date", [internal built date])
|
||||
AC_DEFINE(PACKAGE_VERSION_NEUTRINO_REL_CYCLE, neutrino_rel_cycle, [Neutrino release cycle])
|
||||
|
||||
TUXBOX_APPS
|
||||
|
Reference in New Issue
Block a user