[geos-commits] [SCM] GEOS branch master updated. 6edf1772812c0c1515f0d0e6e0ca9c0e3f6fec23
git at osgeo.org
git at osgeo.org
Wed May 22 09:31:34 PDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, master has been updated
via 6edf1772812c0c1515f0d0e6e0ca9c0e3f6fec23 (commit)
from 5694dec1baa9408493cab4b1a502eabf6916e824 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6edf1772812c0c1515f0d0e6e0ca9c0e3f6fec23
Author: Sandro Santilli <strk at kbt.io>
Date: Wed May 22 18:30:05 2019 +0200
Add an astyle.sh wrapper script to the shipped astyle
diff --git a/README.md b/README.md
index 83e49f6..224d3df 100644
--- a/README.md
+++ b/README.md
@@ -149,16 +149,7 @@ To build Doxygen documentation:
## Style
-To format your code into the desired style, use astyle 3.1
-(included in source tree, see tools/astyle)
-
- astyle --style=stroustrup \
- --unpad-paren \
- --pad-header \
- --pad-comma \
- --indent=spaces=4 \
- --align-pointer=type \
- --max-code-length=120 \
- --lineend=linux \
- yourfile.cpp
+To format your code into the desired style, use the astyle
+version included in source tree:
+ tools/astyle.sh <yourfile.cpp>
diff --git a/tools/astyle.sh b/tools/astyle.sh
new file mode 100755
index 0000000..a31f4f3
--- /dev/null
+++ b/tools/astyle.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cd `dirname $0`
+astyle/astyle \
+ --style=stroustrup \
+ --unpad-paren \
+ --pad-header \
+ --pad-comma \
+ --indent=spaces=4 \
+ --align-pointer=type \
+ --max-code-length=120 \
+ --lineend=linux \
+ @$
-----------------------------------------------------------------------
Summary of changes:
README.md | 15 +++------------
tools/astyle.sh | 13 +++++++++++++
2 files changed, 16 insertions(+), 12 deletions(-)
create mode 100755 tools/astyle.sh
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list