diff --git a/configure.ac b/configure.ac index 7b58421..435b03a 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/libnfc/nfc.c b/libnfc/nfc.c index 9dc374d..4e7d589 100644 --- a/libnfc/nfc.c +++ b/libnfc/nfc.c @@ -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