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://tinc-vpn.org/git/browse?a=commitdiff_plain;h=d3cb2a7342218c1aadfacd92d640c426d725112f;p=tinc Prepare for automatic code formatting using Artistic Style. --- diff --git a/.astylerc b/.astylerc new file mode 100644 index 00000000..ba38946c --- /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 15771158..88ee3003 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 177f5499..0810d4f8 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]