hack to modify the revision field in the documentation
[senf.git] / debian / SConscript
index 899b3f6..4ea8412 100644 (file)
@@ -76,6 +76,11 @@ def dpkgIgnoredFilesOpts(target, source, env, for_signature):
     return [ '-I%s' % (('/' in f) and (os.path.split(os.getcwd())[1])+f or f)
              for f in env.subst('$DPKG_IGNORED_FILES').split() ]
 
+if env.has_key('REVISION'):
+    rev = env['REVISION']
+else:
+    rev = "(Version %s)" % rev
+
 env.Append( ENV = { 
     'REVISION': rev,
     'LOGNAME' : logname, # needed by the debian build scripts