diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-12-29 02:04:19 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-12-29 02:04:35 -0500 |
commit | 43eb9af2f29773014d250acbc927ab9cd8c9f7ba (patch) | |
tree | cd6cd2efc2fe13bf800ba1dcb008f80601c721c9 | |
parent | 57e58d0d69191246c15a01526b938a9e6a1fd5cc (diff) | |
download | mongo-43eb9af2f29773014d250acbc927ab9cd8c9f7ba.tar.gz |
astyle, not hooked up yet, do not run
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | SConstruct | 14 | ||||
-rw-r--r-- | mongo_astyle | 16 |
3 files changed, 31 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 9209b35fd48..3847ca46d4e 100644 --- a/.gitignore +++ b/.gitignore @@ -121,4 +121,4 @@ debian/mongodb *.creator.user *.files *.includes - +*.orig diff --git a/SConstruct b/SConstruct index 327d33aef16..d8266abd415 100644 --- a/SConstruct +++ b/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(): diff --git a/mongo_astyle b/mongo_astyle new file mode 100644 index 00000000000..f5903e79871 --- /dev/null +++ b/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 + |