From: Guus Sliepen Date: Tue, 3 Oct 2017 19:22:39 +0000 (+0200) Subject: Prepare for automatic code formatting using Artistic Style. X-Git-Tag: release-1.0.33~26 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=afcc90a501dc179a4c8e78ae5c51a81b036b4046;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 da1d2ac6..41d240d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -.*.swp +.* +!.gitignore +!.astylerc Makefile Makefile.in *.o @@ -13,7 +15,6 @@ Makefile.in /install-sh /missing INSTALL -.deps stamp-h1 /src/device.c *.tar.gz* @@ -27,4 +28,3 @@ stamp-h1 /doc/*.t2p /ChangeLog core* -.dirstamp diff --git a/Makefile.am b/Makefile.am index 735f6d5e..bfaf557d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,3 +10,6 @@ EXTRA_DIST = COPYING.README README.android ChangeLog: git log > ChangeLog + +astyle: + astyle --options=.astylerc -nQ src/*.[ch] src/*/*.[ch]