# -*- python -*-
-import sys, glob, os.path
+import sys, glob, os.path, datetime
sys.path.append('senfscons')
import SENFSCons
###########################################################################
+svninfo = dict(
+ [ tuple(map(lambda y:y.strip(),x.split(":",1)))
+ for x in os.popen("svn info").read().split("\n")
+ if ':' in x ] )
+svninfo['commited'] = not(os.popen("svn status").read())
+
SENFSCons.UseBoost()
SENFSCons.UseSTLPort()
env = SENFSCons.MakeEnvironment()
LIBS = [ 'iberty' ],
DOXY_XREF_TYPES = [ 'bug', 'fixme', 'todo', 'idea' ],
DOXY_HTML_XSL = '#/doclib/html-munge.xsl',
-)
-
-import datetime
-
-svninfo = dict(
- [ tuple(map(lambda y:y.strip(),x.split(":",1)))
- for x in os.popen("svn info").read().split("\n")
- if ':' in x ] )
-svninfo['commited'] = not(os.popen("svn status").read())
-
-env.Append(
- ENV = { 'TODAY' : datetime.date.today(),
- 'REVISION' : svninfo['Revision'] + (not(svninfo['commited']) and " + local changes" or "") }
+ ENV = { 'TODAY' : str(datetime.date.today()),
+ 'REVISION' : svninfo['Revision'] + (not(svninfo['commited']) and " + local changes" or ""),
+ },
)
Export('env')