Skip to content

Commit

Permalink
astyle, not hooked up yet, do not run
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Dec 29, 2010
1 parent 57e58d0 commit 43eb9af
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -121,4 +121,4 @@ debian/mongodb
*.creator.user
*.files
*.includes

*.orig
14 changes: 14 additions & 0 deletions SConstruct
Expand Up @@ -1330,6 +1330,20 @@ def build_docs(env, target, source):
env.Alias("docs", [], [build_docs])
env.AlwaysBuild("docs")

# ---- astyle ----

def doStyling( env , target , source ):
cmd = "astyle --options=mongo_astyle " + " ".join( utils.getAllSourceFiles() )
res = utils.execsys( cmd )
print( res[0] )
print( res[1] )


#env.Alias( "style" , [] , [ doStyling ] )
#env.AlwaysBuild( "style" )



# ---- INSTALL -------

def getSystemInstallName():
Expand Down
16 changes: 16 additions & 0 deletions mongo_astyle
@@ -0,0 +1,16 @@
--indent=spaces=4

--lineend=linux

--indent-namespaces
--indent-preprocessor


--keep-one-line-statements
--keep-one-line-blocks

--break-closing-brackets
--brackets=attach

--align-pointer=type

0 comments on commit 43eb9af

Please sign in to comment.