From d3cb2a7342218c1aadfacd92d640c426d725112f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 3 Oct 2017 21:23:28 +0200 Subject: [PATCH] Prepare for automatic code formatting using Artistic Style. --- .astylerc | 10 ++++++++++ .gitignore | 6 +++--- Makefile.am | 3 +++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .astylerc diff --git a/.astylerc b/.astylerc new file mode 100644 index 0000000..ba38946 --- /dev/null +++ b/.astylerc @@ -0,0 +1,10 @@ +--indent=tab=8 +--convert-tabs +-j +-f +-A2 +-U +-p +-xg +-k3 +-w diff --git a/.gitignore b/.gitignore index 1577115..88ee300 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/Makefile.am b/Makefile.am index 177f549..0810d4f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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] -- 2.25.1