summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-01-03 23:40:03 -0500
committerEliot Horowitz <eliot@10gen.com>2011-01-03 23:40:03 -0500
commit93286ffa825204f2a264f047a1371e924cdf71a6 (patch)
treefedaa28e88817fc68889453aad4904449c27362f /SConstruct
parent8c09870dd6d4c072a784a2009fcf527c5255cc7f (diff)
downloadmongo-93286ffa825204f2a264f047a1371e924cdf71a6.tar.gz
enable scons style
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
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" )