mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
--prefix to conrol install location
This commit is contained in:
parent
3c7205be4a
commit
47e463f0ce
16
SConstruct
16
SConstruct
@ -6,6 +6,18 @@
|
||||
|
||||
import os
|
||||
|
||||
# --- options ----
|
||||
AddOption('--prefix',
|
||||
dest='prefix',
|
||||
type='string',
|
||||
nargs=1,
|
||||
action='store',
|
||||
metavar='DIR',
|
||||
help='installation prefix')
|
||||
|
||||
|
||||
# --- environment setup ---
|
||||
|
||||
env = Environment()
|
||||
|
||||
env.Append( CPPPATH=[ "." ] )
|
||||
@ -138,7 +150,9 @@ clientEnv.Program( "clientTest" , [ "client/examples/clientTest.cpp" ] )
|
||||
|
||||
# ---- INSTALL -------
|
||||
|
||||
installDir = "/opt/mongo"
|
||||
installDir = "/usr/local"
|
||||
if GetOption( "prefix" ):
|
||||
installDir = GetOption( "prefix" )
|
||||
|
||||
#binaries
|
||||
env.Install( installDir + "/bin" , "mongodump" )
|
||||
|
Loading…
Reference in New Issue
Block a user