git-version: echo version for AC_INIT

AC_INIT needs version information for building shared libraries.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2017-11-26 08:15:04 +08:00
parent 5f5d7c2b93
commit 40bcde3c9e
1 changed files with 2 additions and 0 deletions

View File

@ -20,3 +20,5 @@ fi
echo $num > .build
echo "#define REEF_BUILD $num" >> src/include/version.h
#echo version for AC_INIT
echo -n `cat .version | cut -dv -f2 | cut -d. -f1`:`cat .version | cut -d. -f2 | cut -d- -f1`