Prepare for automatic code formatting using Artistic Style.
authorGuus Sliepen <guus@sliepen.org>
Tue, 3 Oct 2017 19:22:39 +0000 (21:22 +0200)
committerGuus Sliepen <guus@sliepen.org>
Tue, 3 Oct 2017 19:22:39 +0000 (21:22 +0200)
.astylerc [new file with mode: 0644]
.gitignore
Makefile.am

diff --git a/.astylerc b/.astylerc
new file mode 100644 (file)
index 0000000..ba38946
--- /dev/null
+++ b/.astylerc
@@ -0,0 +1,10 @@
+--indent=tab=8
+--convert-tabs
+-j
+-f
+-A2
+-U
+-p
+-xg
+-k3
+-w
index da1d2ac60e6f686979b1b8594b61d527e7c1900f..41d240d4c5f1437bccb99284a2256733fccc2f5e 100644 (file)
@@ -1,4 +1,6 @@
-.*.swp
+.*
+!.gitignore
+!.astylerc
 Makefile
 Makefile.in
 *.o
@@ -13,7 +15,6 @@ Makefile.in
 /install-sh
 /missing
 INSTALL
-.deps
 stamp-h1
 /src/device.c
 *.tar.gz*
@@ -27,4 +28,3 @@ stamp-h1
 /doc/*.t2p
 /ChangeLog
 core*
-.dirstamp
index 735f6d5ecafde3f55e09bfab23756942b45ffc78..bfaf557d9ba0708253704fefeb42d421a374648f 100644 (file)
@@ -10,3 +10,6 @@ EXTRA_DIST = COPYING.README README.android
 
 ChangeLog:
        git log > ChangeLog
+
+astyle:
+       astyle --options=.astylerc -nQ src/*.[ch] src/*/*.[ch]