Permalink
Browse files

enable scons style

  • Loading branch information...
1 parent 8c09870 commit 93286ffa825204f2a264f047a1371e924cdf71a6 @erh erh committed Jan 4, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 SConstruct
View
@@ -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" )

0 comments on commit 93286ff

Please sign in to comment.