diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-06 19:18:30 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-06 19:18:30 -0500 |
commit | 89b0957a4107621b8a75b34da435ae7875699004 (patch) | |
tree | 0fd4061a95887625cd4a26ab04a91d29635d18eb | |
parent | 05c32be539c301e98c9b632d948caf64c10ffefd (diff) | |
download | mongo-89b0957a4107621b8a75b34da435ae7875699004.tar.gz |
versions for build bot finding
-rw-r--r-- | SConstruct | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 98430dc2072..4fda4a2b8d2 100644 --- a/SConstruct +++ b/SConstruct @@ -616,6 +616,12 @@ def getGitBranch(): return version def getGitBranchString( prefix="" , postfix="" ): + t = re.compile( '[/\\\]' ).split( os.getcwd() ) + if len(t) > 2 and t[len(t)-1] == "mongo": + t = re.compile( ".*_([vV]\d+\.\d+)$" ).match( t[len(t)-2] ) + if t is not None: + return t.group(1).lower() + b = getGitBranch() if b == None or b == "master": return "" |