From afcc90a501dc179a4c8e78ae5c51a81b036b4046 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 3 Oct 2017 21:22:39 +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 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] -- 2.20.1