]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
temporary solution for make indent target
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Nov 2012 20:55:18 +0000 (20:55 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Nov 2012 20:55:18 +0000 (20:55 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27616 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/Makefile [new file with mode: 0644]
deal.II/contrib/utilities/astyle.rc [new file with mode: 0644]

diff --git a/deal.II/Makefile b/deal.II/Makefile
new file mode 100644 (file)
index 0000000..05ab97b
--- /dev/null
@@ -0,0 +1,8 @@
+style-h-files:= $(wildcard include/deal.II/*/*.h)
+style-cc-files:= $(wildcard source/*/*.cc)
+
+default:
+
+indent:
+        @echo "============ Indenting all files"
+        astyle --options=contrib/utilities/astyle.rc $(style-h-files) $(style-cc-files)
diff --git a/deal.II/contrib/utilities/astyle.rc b/deal.II/contrib/utilities/astyle.rc
new file mode 100644 (file)
index 0000000..35e5a77
--- /dev/null
@@ -0,0 +1,20 @@
+# astyle 2.02 indentation style for deal.II
+# Run astyle in a command like
+#    astyle --options=lib/astyle.rc *cc *h
+
+--style=gnu
+
+--convert-tabs
+--indent-preprocessor
+--indent=spaces=2
+--indent-namespaces
+--min-conditional-indent=0
+--pad-header
+
+# write things as 'char *p', not 'char* p'
+--align-pointer=name
+--align-reference=name
+
+--max-instatement-indent=60
+--suffix=none
+--quiet

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.