diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-02-01 19:11:45 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-02-01 19:11:45 -0500 |
commit | 90878cd7c1ddccfd759d2a84fefa77dc3a5f7018 (patch) | |
tree | 6ac7b462efae8b686fe8b3ee4b55269db36fb592 | |
parent | 5d0a8c18b4b9f3b12ab231c70f080dc90fab9b7f (diff) | |
download | mongo-90878cd7c1ddccfd759d2a84fefa77dc3a5f7018.tar.gz |
s3dist taret to build and push to s3 for testing
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | SConstruct | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore index e5df62227cb..2b236a35224 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ mongogrid mongodump mongoimport mongoimportjson +*.tgz #libs libmongoclient.* diff --git a/SConstruct b/SConstruct index 529a3da7aa4..3e56ce5f684 100644 --- a/SConstruct +++ b/SConstruct @@ -132,7 +132,7 @@ javaLibs = [] distBuild = GetOption( "dist" ) is not None if distBuild: release = True - installDir = "/tmp/mongo-db-" + GetOption( "dist" ) + "-latest" + installDir = "mongo-db-" + GetOption( "dist" ) + "-latest" if GetOption( "prefix" ): installDir = GetOption( "prefix" ) @@ -587,13 +587,13 @@ def s3dist( env , target , source ): print( "can't do s3dist without --dist" ) Exit(1) - p = installDir - if p.endswith( "/" ): - p = p.substring( 0 , p.size() - 1 ) - - dir,slash,name = p.rpartition( "/" ) + s3push( distFile ) + +distFile = installDir + ".tgz" +env.Append( TARFLAGS=" -z " ) +env.Tar( distFile , installDir ) -env.Alias( "s3dist" , [ "install" ] , [ s3dist ] ) +env.Alias( "s3dist" , [ "install" , distFile ] , [ s3dist ] ) env.AlwaysBuild( "s3dist" ) |