File: format.sh

package info (click to toggle)
libmongocrypt 1.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,572 kB
  • sloc: ansic: 70,067; python: 4,547; cpp: 615; sh: 460; makefile: 44; awk: 8
file content (14 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

. "$(dirname "${BASH_SOURCE[0]}")/../.evergreen/init.sh"

: "${CLANG_FORMAT_VERSION:=15.0.7}"
export PIPX_HOME="${BUILD_CACHE_DIR}/pipx"

if ! run_python -c ''; then
  fail "No Python found?"
fi


# Give default clang-format an empty string on stdin if there are no inputs files
printf '' | run_python -m pipx run "clang-format==${CLANG_FORMAT_VERSION:?}" "$@"