SVN_REVISION is not relevant anymore, use GIT_REVISION (git describe
) instead.
This commit is contained in:
parent
7963fdfc3b
commit
4722b7dd97
2 changed files with 6 additions and 6 deletions
|
@ -7,10 +7,10 @@ AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
# SVN revison
|
# GIT revison
|
||||||
define([svn_revision], esyscmd([sh -c "svnversion -n"]))
|
define([git_revision], esyscmd([sh -c "git describe"]))
|
||||||
SVN_REVISION=svn_revision
|
GIT_REVISION=git_revision
|
||||||
AC_DEFINE_UNQUOTED([SVN_REVISION], ["$SVN_REVISION"], [SVN revision])
|
AC_DEFINE_UNQUOTED([GIT_REVISION], ["$GIT_REVISION"], [GIT revision])
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
||||||
|
|
|
@ -1097,8 +1097,8 @@ nfc_device_get_supported_baud_rate(nfc_device *pnd, const nfc_modulation_type nm
|
||||||
const char *
|
const char *
|
||||||
nfc_version(void)
|
nfc_version(void)
|
||||||
{
|
{
|
||||||
#ifdef SVN_REVISION
|
#ifdef GIT_REVISION
|
||||||
return PACKAGE_VERSION " (r" SVN_REVISION ")";
|
return GIT_REVISION;
|
||||||
#else
|
#else
|
||||||
return PACKAGE_VERSION;
|
return PACKAGE_VERSION;
|
||||||
#endif // SVN_REVISION
|
#endif // SVN_REVISION
|
||||||
|
|
Loading…
Reference in a new issue