diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-01-03 23:40:03 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-01-03 23:40:03 -0500 |
commit | 93286ffa825204f2a264f047a1371e924cdf71a6 (patch) | |
tree | fedaa28e88817fc68889453aad4904449c27362f /SConstruct | |
parent | 8c09870dd6d4c072a784a2009fcf527c5255cc7f (diff) | |
download | mongo-93286ffa825204f2a264f047a1371e924cdf71a6.tar.gz |
enable scons style
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct index f58962c101a..9fc76f96562 100644 --- a/SConstruct +++ b/SConstruct @@ -1333,14 +1333,16 @@ env.AlwaysBuild("docs") # ---- astyle ---- def doStyling( env , target , source ): - cmd = "astyle --options=mongo_astyle " + " ".join( utils.getAllSourceFiles() ) + files = utils.getAllSourceFiles() + files = filter( lambda x: not x.endswith( ".c" ) , files ) + cmd = "astyle --options=mongo_astyle " + " ".join( files ) res = utils.execsys( cmd ) print( res[0] ) print( res[1] ) -#env.Alias( "style" , [] , [ doStyling ] ) -#env.AlwaysBuild( "style" ) +env.Alias( "style" , [] , [ doStyling ] ) +env.AlwaysBuild( "style" ) |