mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 22:26:29 +01:00
13 lines
417 B
Text
13 lines
417 B
Text
|
AC_DEFUN(SAVE_UTIL_VERSION, [
|
||
|
SND_UTIL_VERSION=$VERSION
|
||
|
echo $VERSION > $srcdir/version
|
||
|
AC_DEFINE_UNQUOTED(VERSION, "$SND_UTIL_VERSION")
|
||
|
AC_SUBST(SND_UTIL_VERSION)
|
||
|
SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
|
||
|
AC_SUBST(SND_UTIL_MAJOR)
|
||
|
SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
|
||
|
AC_SUBST(SND_UTIL_MINOR)
|
||
|
SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[[0-9]]*//g'`
|
||
|
AC_SUBST(SND_UTIL_SUBMINOR)
|
||
|
])
|