[GRASS-SVN] r65036 - grass/branches/releasebranch_7_0/tools

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 9 08:09:21 PDT 2015


Author: wenzeslaus
Date: 2015-04-09 08:09:20 -0700 (Thu, 09 Apr 2015)
New Revision: 65036

Modified:
   grass/branches/releasebranch_7_0/tools/grass_indent.sh
Log:
do not use tabs for indent (backport of r64658)

Modified: grass/branches/releasebranch_7_0/tools/grass_indent.sh
===================================================================
--- grass/branches/releasebranch_7_0/tools/grass_indent.sh	2015-04-09 13:15:37 UTC (rev 65035)
+++ grass/branches/releasebranch_7_0/tools/grass_indent.sh	2015-04-09 15:09:20 UTC (rev 65036)
@@ -1,14 +1,28 @@
 #!/bin/sh
 
-# Indent source code according to GRASS SUBMITTING rules
+# Indent source code according to GRASS GIS submitting rules
 
+# Should be in sync with:
+#     https://trac.osgeo.org/grass/wiki/Submitting/C
+#     http://grasswiki.osgeo.org/wiki/Development#Explanation_of_C_indentation_rules
+
+# Dependencies:
+#     indent
+
+# Changes and their reasons:
+#    -ts8 -ut -> --no-tabs
+#        Do not use 8 space wide tabs when indent level is 4
+
+# TODO: replace short flags by long ones to improve readability
+
+
 if [ $# -lt 1 ] ; then
  echo "No files specified (give file name(s) as parameter)"
  exit 1
 else
  indent -npro -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \
       -nbbo -nbc -nbfda -nbfde -ncdb -ncdw -nce -nfca -npcs -nprs \
-      -npsl -nsc -nsob -saf -sai -saw -sbi0 -ss -ts8 -ut "$@"
+      -npsl -nsc -nsob -saf -sai -saw -sbi0 -ss --no-tabs "$@"
 
  # fix broken gettext macros:
  grep -l '\<_$' "$@" | \



More information about the grass-commit mailing list