Prepare for automatic code formatting using Artistic Style.
authorGuus Sliepen <guus@sliepen.org>
Tue, 3 Oct 2017 19:23:28 +0000 (21:23 +0200)
committerGuus Sliepen <guus@sliepen.org>
Tue, 3 Oct 2017 19:23:28 +0000 (21:23 +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 15771158316ce89524e86293e7540cf79a2a5abd..88ee300395808e07b07a02776d3b119db8d4a75f 100644 (file)
@@ -1,10 +1,11 @@
+.*
+!.gitignore
+!.astylerc
 *.a
 *.dirstamp
 *.o
 *.orig
 *.swp
-.deps
-.libs
 /ChangeLog
 /INSTALL
 /aclocal.m4
@@ -40,4 +41,3 @@ Makefile
 Makefile.in
 core*
 *.tar.gz*
-.Tpo
index 177f54996769501616cb344439d71518d7d3a488..0810d4f893bb319ad4adc1363e4dc7ef4ee0c47f 100644 (file)
@@ -33,3 +33,6 @@ release:
        echo "Please edit the NEWS file now..."
        /usr/bin/editor $(srcdir)/NEWS
        $(MAKE) dist
+
+astyle:
+       astyle --options=.astylerc -nQ src/*.[ch] src/*/*.[ch] test/*.[ch]