Browse files

astyle, not hooked up yet, do not run

  • Loading branch information...
1 parent 57e58d0 commit 43eb9af2f29773014d250acbc927ab9cd8c9f7ba @erh erh committed Dec 29, 2010
Showing with 31 additions and 1 deletion.
  1. +1 −1 .gitignore
  2. +14 −0 SConstruct
  3. +16 −0 mongo_astyle
View
2 .gitignore
@@ -121,4 +121,4 @@ debian/mongodb
*.creator.user
*.files
*.includes
-
+*.orig
View
14 SConstruct
@@ -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():
View
16 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.