← Back to team overview

yade-dev team mailing list archive

please someone (Anton?) apply this patch and commit

 

Hi there, I am behind firewall again, can I ask someone to apply this
patch to trunk (patch -p1 < realVersion.patch) and commit? Thanks a lot.
Vaclav
diff -ur trunk/SConstruct trunk~pre~update~/SConstruct
--- trunk/SConstruct	2010-02-28 23:00:40.000000000 +0100
+++ trunk~pre~update~/SConstruct	2010-03-04 08:43:47.000033000 +0100
@@ -146,6 +146,7 @@
 	EnumVariable('linkStrategy','How to link plugins together',defOptions['linkStrategy'],['per-class','per-pkg[broken]','monolithic','static[broken]']),
 	('chunkSize','Maximum files to compile in one translation unit when building plugins.',7,None,int),
 	('version','Yade version (if not specified, guess will be attempted)',None),
+	('realVersion','Revision (usually bzr revision); guessed automatically unless specified',None),
 	('CPPPATH', 'Additional paths for the C preprocessor (colon-separated)','/usr/include/vtk-5.2:/usr/include/vtk-5.4:/usr/include/eigen2'),
 	('LIBPATH','Additional paths for the linker (colon-separated)',None),
 	('QTDIR','Directories where to look for qt3','/usr/share/qt3:/usr/lib/qt:/usr/lib/qt3:/usr/qt/3:/usr/lib/qt-3.3'),
@@ -204,7 +205,7 @@
 ###########################################
 import yadeSCons
 ## ALL generated stuff should go here - therefore we must determine it very early!!
-env['realVersion']=yadeSCons.getRealVersion() or 'unknown' # unknown if nothing returned
+if not env.has_key('realVersion') or not env['realVersion']: env['realVersion']=yadeSCons.getRealVersion() or 'unknown' # unknown if nothing returned
 if not env.has_key('version'): env['version']=env['realVersion']
 
 env['SUFFIX']='-'+env['version']+env['variant']


Follow ups