0
0
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:
Eliot Horowitz 2009-01-14 10:58:32 -05:00
parent 3c7205be4a
commit 47e463f0ce

View File

@ -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" )