From: Guus Sliepen Date: Tue, 3 Oct 2017 19:23:28 +0000 (+0200) Subject: Prepare for automatic code formatting using Artistic Style. X-Git-Tag: release-1.1pre16~68 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d3cb2a7342218c1aadfacd92d640c426d725112f;p=oweals%2Ftinc.git Prepare for automatic code formatting using Artistic Style. --- 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]