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 1577115..88ee300 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 177f549..0810d4f 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]