Skip to content

Commit

Permalink
Convert to a two-digit version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Apr 1, 2018
1 parent 3631fca commit dc6d86e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ ENABLE_TESTING()

# Version number of gnucash
SET (GNUCASH_MAJOR_VERSION 2)
SET (GNUCASH_MINOR_VERSION 7)
SET (GNUCASH_MICRO_VERSION 8)
SET (GNUCASH_NANO_VERSION 0)
SET (GNUCASH_MINOR_VERSION 99)
SET (VERSION "${GNUCASH_MAJOR_VERSION}.${GNUCASH_MINOR_VERSION}.${GNUCASH_MICRO_VERSION}")
SET (GNUCASH_LATEST_STABLE_SERIES 2.6)

SET (PACKAGE gnucash)
SET (PACKAGE_NAME GnuCash)
SET (PACKAGE_VERSION 2.7.8)
SET (PACKAGE_VERSION 2.99)
SET (PACKAGE_BUGREPORT gnucash-devel@gnucash.org)
SET (PACKAGE_TARNAME ${PACKAGE})
SET (PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
Expand Down
5 changes: 1 addition & 4 deletions libgnucash/core-utils/gnc-prefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ gnc_prefs_set_file_retention_days(gint days)
guint
gnc_prefs_get_long_version()
{
return GNUCASH_MAJOR_VERSION * 1000000 +
GNUCASH_MINOR_VERSION * 10000 +
GNUCASH_MICRO_VERSION * 100 +
GNUCASH_NANO_VERSION;
return GNUCASH_MAJOR_VERSION * 1000000 + GNUCASH_MINOR_VERSION;
}

gulong gnc_prefs_register_cb (const char *group,
Expand Down

0 comments on commit dc6d86e

Please sign in to comment.