You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
361 B
16 lines
361 B
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
readonly VERSION="3.6"
|
|
|
|
version=$(clang-format -version)
|
|
|
|
if ! [[ $version == *"$VERSION"* ]]; then
|
|
echo "clang-format version check failed."
|
|
echo "a version contains '$VERSION' is needed, but get '$version'"
|
|
echo "you can install the right version, and make an soft-link to '\$PATH' env"
|
|
exit -1
|
|
fi
|
|
|
|
clang-format $@
|