grass_indent_ALL.sh 401 B

1234567891011121314
  1. #!/bin/sh
  2. # HANDLE WITH CARE
  3. # loops over entire GRASS source code tree and indents source code according to SUBMITTING rules
  4. #are we in the tools/ dir? We should not.
  5. if [ ! -d tools ] ; then
  6. echo "ERROR: this script must be run from the main GRASS source code directory" >&2
  7. exit 1
  8. fi
  9. echo "Indenting *.c and *.h..." >&2
  10. find . -type f -name "*.[ch]" -print0 | xargs -0 ./tools/grass_indent.sh