mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
more cxx driver build hacking
This commit is contained in:
parent
4478f8c9c1
commit
dba5ecbdb6
24
SConstruct
24
SConstruct
@ -501,9 +501,12 @@ dontReplacePackage = False
|
||||
if distBuild:
|
||||
release = True
|
||||
|
||||
def isDriverBuild():
|
||||
return GetOption( "prefix" ) and GetOption( "prefix" ).find( "mongo-cxx-driver" ) >= 0
|
||||
|
||||
if GetOption( "prefix" ):
|
||||
installDir = GetOption( "prefix" )
|
||||
if installDir.find( "mongo-cxx-driver" ) >= 0:
|
||||
if isDriverBuild():
|
||||
installSetup.justClient()
|
||||
|
||||
|
||||
@ -1464,11 +1467,14 @@ def getDistName( sofar ):
|
||||
|
||||
|
||||
if distBuild:
|
||||
from datetime import date
|
||||
today = date.today()
|
||||
installDir = "mongodb-" + getSystemInstallName() + "-"
|
||||
installDir += getDistName( installDir )
|
||||
print "going to make dist: " + installDir
|
||||
if isDriverBuild():
|
||||
installDir = GetOption( "prefix" )
|
||||
else:
|
||||
from datetime import date
|
||||
today = date.today()
|
||||
installDir = "mongodb-" + getSystemInstallName() + "-"
|
||||
installDir += getDistName( installDir )
|
||||
print "going to make dist: " + installDir
|
||||
|
||||
# binaries
|
||||
|
||||
@ -1619,8 +1625,10 @@ def s3push( localName , remoteName=None , remotePrefix=None , fixName=True , pla
|
||||
name = name.lower()
|
||||
else:
|
||||
name = remoteName
|
||||
|
||||
if platformDir:
|
||||
|
||||
if isDriverBuild():
|
||||
name = "cxx-driver/" + name
|
||||
elif platformDir:
|
||||
name = platform + "/" + name
|
||||
|
||||
print( "uploading " + localName + " to http://s3.amazonaws.com/" + s.name + "/" + name )
|
||||
|
Loading…
Reference in New Issue
Block a user