3 # This script sends files to a web service using POST requests and reads back
4 # the correctly formatted source files. This allows to apply clang-format
5 # without having to install the tool locally.
8 echo "Usage $0 <file> [<file> ...]"
14 o="`TMPDIR="${d}" mktemp format.XXXXXX`"
16 curl --silent --data-binary "@-" https://format.collectd.org/ <"${i}" >"${o}"
17 if test $? -eq 0; then