[Sound-open-firmware] [PATCH] build: version Add micro version to supporting versioning stable releases
Currently SOF is version as x.y. Add a z so that the version is x.y.z and can represent different stable versions.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- configure.ac | 2 ++ version.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac index 5ade40b..a47a714 100644 --- a/configure.ac +++ b/configure.ac @@ -11,8 +11,10 @@ AM_MAINTAINER_MODE([enable]) # get version info from git m4_define(reef_major, `cat .version | cut -dv -f2 | cut -d. -f1`) m4_define(reef_minor, `cat .version | cut -d. -f2 | cut -d- -f1`) +m4_define(reef_micro, `cat .version | cut -d. -f3 | cut -d- -f1`) AC_DEFINE_UNQUOTED([REEF_MAJOR], reef_major, [Reef major version]) AC_DEFINE_UNQUOTED([REEF_MINOR], reef_minor, [Reef minor version]) +AC_DEFINE_UNQUOTED([REEF_MICRO], reef_micro, [Reef micro version])
AC_CANONICAL_HOST
diff --git a/version.sh b/version.sh index fb5f3e4..1f57c53 100755 --- a/version.sh +++ b/version.sh @@ -35,5 +35,5 @@ echo "#define REEF_BUILD $num" >> $DIR/src/include/version.h
#echo version for AC_INIT if [ -e $DIR/.version ]; then - echo -n `cat $DIR/.version | cut -dv -f2 | cut -d. -f1`.`cat $DIR/.version | cut -d. -f2 | cut -d- -f1` + echo -n `cat $DIR/.version | cut -dv -f2 | cut -d. -f1`.`cat $DIR/.version | cut -d. -f2 | cut -d- -f1`.`cat $DIR/.version | cut -d. -f3 | cut -d- -f1` fi
participants (1)
-
Liam Girdwood