From 41e3b00dbeaf03c888858b2aa7023f8c47fbd6eb Mon Sep 17 00:00:00 2001 From: js Date: Sun, 20 Jul 2008 14:44:08 +0000 Subject: [PATCH] This should automatically include the revision in our version. --- src/common/defs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/defs.py b/src/common/defs.py index f6a742f60..7fa1a5e56 100644 --- a/src/common/defs.py +++ b/src/common/defs.py @@ -3,6 +3,9 @@ docdir = '../' datadir = '../' version = '0.11.4.4-svn' +rev = '$Rev$'.replace('$', '').replace('Rev', '').replace(': ', '') +if rev is not '': + version += ' r' + rev import sys, os.path for base in ('.', 'common'):