fi
#
-# collect all header and source files and process them in batches of 50
+# Collect all header and source files and process them in batches of 50
# files with up to 10 in parallel
#
-
find tests include source examples \
\( -name '*.cc' -o -name '*.h' -o -name '*.cu' -o -name '*.cuh' \) -print0 |
xargs -0 -n 50 -P 10 clang-format -i
#
-# use the same process to set file permissions for all source files
+# Use the same process to set file permissions for all source files.
#
find tests include source examples \
xargs -0 -n 50 -P 10 chmod 644
#
-# convert dos formatted files to unix file format by stripping out
+# Convert DOS formatted files to unix file format by stripping out
# carriage returns (15=0x0D):
#
xargs -0 -n 1 -P 10 -I {} bash -c 'dos_to_unix "$@"' _ {}
#
-# format .inst.in files. We need to replace \{ and \} by a sentinel because
+# Format .inst.in files. We need to replace \{ and \} by a sentinel because
# clang-format happily strips away the backslash. Further, there is a minor
# caveat: clang-format automatically renames a comment after a closing
# bracket for a namespace to "} // namespace FooBar". Thus use "namespace"