mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
514cdf8340
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
21 lines
555 B
Plaintext
21 lines
555 B
Plaintext
dnl @synopsis MC_VERSION
|
|
dnl
|
|
dnl get current version of Midnight Commander from git tags
|
|
dnl
|
|
dnl @author Slava Zanko <slavazanko@gmail.com>
|
|
dnl @version 2009-06-02
|
|
dnl @license GPL
|
|
dnl @copyright Free Software Foundation, Inc.
|
|
|
|
AC_DEFUN([MC_VERSION],[
|
|
if test ! -f ${srcdir}/version.h; then
|
|
${srcdir}/maint/version.sh ${srcdir}
|
|
fi
|
|
if test -f ${srcdir}/version.h; then
|
|
VERSION=$(grep '^#define MC_CURRENT_VERSION' ${srcdir}/version.h | sed 's/.*"\(.*\)"$/\1/')
|
|
else
|
|
VERSION="unknown"
|
|
fi
|
|
AC_SUBST(VERSION)
|
|
])
|