diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-05-26 11:11:15 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-05-26 11:11:15 -0400 |
commit | 0f04c206d94512341a31c8104b62900c37e29478 (patch) | |
tree | b5b2121429b1a6a53fe9617cf068b96c866ee127 /SConstruct | |
parent | c00f9ebe0213fd2163d130c60cdfb43ebb65d5d8 (diff) | |
download | mongo-0f04c206d94512341a31c8104b62900c37e29478.tar.gz |
add module names to git version string
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 95e3bfda7b6..ad38a0a78bd 100644 --- a/SConstruct +++ b/SConstruct @@ -436,11 +436,13 @@ serverOnlyFiles += coreShardFiles + [ "s/d_logic.cpp" ] serverOnlyFiles += [ "db/module.cpp" ] + Glob( "db/modules/*.cpp" ) modules = [] +moduleNames = [] for x in os.listdir( "db/modules/" ): if x.find( "." ) >= 0: continue print( "adding module: " + x ) + moduleNames.append( x ) modRoot = "db/modules/" + x + "/" serverOnlyFiles += Glob( modRoot + "src/*.cpp" ) modBuildFile = modRoot + "build.py" @@ -781,6 +783,8 @@ def add_exe(target): def setupBuildInfoFile( outFile ): version = getGitVersion() + if len(moduleNames) > 0: + version = version + " modules: " + ','.join( moduleNames ) sysInfo = getSysInfo() contents = '\n'.join([ '#include "pch.h"', |