[postgis-tickets] r16436 - Have astyle.sh use same indenting as requested by editorconfig

Sandro Santilli strk at kbt.io
Wed Feb 28 02:07:33 PST 2018


Author: strk
Date: 2018-02-28 14:07:33 -0800 (Wed, 28 Feb 2018)
New Revision: 16436

Modified:
   trunk/astyle.sh
Log:
Have astyle.sh use same indenting as requested by editorconfig

Modified: trunk/astyle.sh
===================================================================
--- trunk/astyle.sh	2018-02-28 21:58:06 UTC (rev 16435)
+++ trunk/astyle.sh	2018-02-28 22:07:33 UTC (rev 16436)
@@ -20,8 +20,24 @@
 # Find all "pure" C files in the codebase
 #   - not .in.c used for .sql generation
 #   - not lex.yy.c or wktparse.tab.c as these are generated files
-CFILES=`find . -name '*.c' -not \( -name '*_parse.c' -o -name '*_lex.c' \)`
+#   - not topology/* files
+CFILES_TAB=`find . -name '*.c' -not \( \
+  -name '*_parse.c' -o \
+  -name '*_lex.c' -o \
+  -name './topology/*' -o \
+  -name './liblwgeom/liblwgeom_topo.*' \
+\)`
 
 # Run the standard format on the files, and do not
 # leave .orig files around for altered files.
-astyle --style=ansi --indent=tab --suffix=none $CFILES
+astyle --style=ansi --indent=tab --suffix=none $CFILES_TAB
+
+# Find all "pure" C files in the codebase
+#   - not .in.c used for .sql generation
+#   - not lex.yy.c or wktparse.tab.c as these are generated files
+#   - not topology/* files
+CFILES_SPACE="liblwgeom/*.c topology/*.c"
+
+# Run the standard format on the files, and do not
+# leave .orig files around for altered files.
+astyle --style=ansi --indent=space --suffix=none $CFILES_SPACE



More information about the postgis-tickets mailing list