Skip to content

Commit

Permalink
SVN_REVISION is not relevant anymore, use GIT_REVISION (`git describe…
Browse files Browse the repository at this point in the history
…`) instead.
  • Loading branch information
neomilium committed Nov 24, 2012
1 parent 7963fdf commit 4722b7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
4 changes: 2 additions & 2 deletions libnfc/nfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4722b7d

Please sign in to comment.