From f6565b57033564ffd2d564ac740bb9bd8c2ac28e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Thu, 12 Oct 2006 15:10:17 +0000 Subject: [PATCH] add a defs.py to svn for windows users take version number from defs.py, so now when we upgrade it we have to upgrade in configure.ac AND defs.py (for win users) --- configure.ac | 2 +- src/common/config.py | 3 ++- src/common/defs.py | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/common/defs.py diff --git a/configure.ac b/configure.ac index 4b3c5ab354..d58b2e987d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_INIT([Gajim - A Jabber Instant Messager], - [0.11.0],[http://trac.gajim.org/],[gajim]) + [0.10.1.6],[http://trac.gajim.org/],[gajim]) AC_PREREQ([2.59]) AM_INIT_AUTOMAKE([1.8]) AC_CONFIG_HEADER(config.h) diff --git a/src/common/config.py b/src/common/config.py index 7081b397e3..703771a64a 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -21,6 +21,7 @@ import sre import copy +import defs ( @@ -143,7 +144,7 @@ class Config: 'send_on_ctrl_enter': [opt_bool, False, _('Send message on Ctrl+Enter and with Enter make new line (Mirabilis ICQ Client default behaviour).')], 'show_roster_on_startup': [opt_bool, True], 'key_up_lines': [opt_int, 25, _('How many lines to store for Ctrl+KeyUP.')], - 'version': [ opt_str, '0.10.1.6' ], # which version created the config + 'version': [ opt_str, defs.version ], # which version created the config 'search_engine': [opt_str, 'http://www.google.com/search?&q=%s&sourceid=gajim'], 'dictionary_url': [opt_str, 'WIKTIONARY', _("Either custom url with %s in it where %s is the word/phrase or 'WIKTIONARY' which means use wiktionary.")], 'always_english_wikipedia': [opt_bool, False], diff --git a/src/common/defs.py b/src/common/defs.py new file mode 100644 index 0000000000..df5f677d4b --- /dev/null +++ b/src/common/defs.py @@ -0,0 +1,5 @@ +docdir = "../" + +datadir = "../" + +version = "0.10.1.6" -- GitLab