summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authoryellow <yellow@ofc-n1.10gen.com>2009-08-05 15:38:58 -0400
committeryellow <yellow@ofc-n1.10gen.com>2009-08-05 15:38:58 -0400
commit1fa83c18929249698bb66b949a4dad6bc41b9626 (patch)
tree56db21ea929a4f90960a11c86fbc056b58c2e815 /SConstruct
parent7d335e715c65d71611c5c4d7134ad8529eb3893a (diff)
downloadmongo-1fa83c18929249698bb66b949a4dad6bc41b9626.tar.gz
make sure binaries are 0755 SERVER-209
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 9af503af58f..b4a444dc9bd 100644
--- a/SConstruct
+++ b/SConstruct
@@ -512,6 +512,11 @@ if nix:
if GetOption( "profile" ) is not None:
env.Append( LINKFLAGS=" -pg " )
+try:
+ umask = os.umask(022)
+except OSError:
+ pass
+
# --- check system ---
def getGitVersion():
@@ -1185,6 +1190,9 @@ def installBinary( e , name ):
if linux and len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "s3dist":
e.AddPostAction( inst , checkGlibc )
+ if nix:
+ e.AddPostAction( inst , e.Action( 'chmod 755 ' + fullInstallName ) )
+
installBinary( env , "mongodump" )
installBinary( env , "mongorestore" )