SVN_REVISION is not relevant anymore, use GIT_REVISION (git describe) instead.

This commit is contained in:
Romuald Conty 2012-11-24 20:11:12 +01:00
parent 7963fdfc3b
commit 4722b7dd97
2 changed files with 6 additions and 6 deletions

View file

@ -7,10 +7,10 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER(config.h)
# SVN revison
define([svn_revision], esyscmd([sh -c "svnversion -n"]))
SVN_REVISION=svn_revision
AC_DEFINE_UNQUOTED([SVN_REVISION], ["$SVN_REVISION"], [SVN revision])
# GIT revison
define([git_revision], esyscmd([sh -c "git describe"]))
GIT_REVISION=git_revision
AC_DEFINE_UNQUOTED([GIT_REVISION], ["$GIT_REVISION"], [GIT revision])
AM_INIT_AUTOMAKE
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

View file

@ -1097,8 +1097,8 @@ nfc_device_get_supported_baud_rate(nfc_device *pnd, const nfc_modulation_type nm
const char *
nfc_version(void)
{
#ifdef SVN_REVISION
return PACKAGE_VERSION " (r" SVN_REVISION ")";
#ifdef GIT_REVISION
return GIT_REVISION;
#else
return PACKAGE_VERSION;
#endif // SVN_REVISION