diff options
Diffstat (limited to 'vendor/aws/aws-crt-php/format-check.sh')
-rwxr-xr-x | vendor/aws/aws-crt-php/format-check.sh | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/vendor/aws/aws-crt-php/format-check.sh b/vendor/aws/aws-crt-php/format-check.sh deleted file mode 100755 index eb2f524..0000000 --- a/vendor/aws/aws-crt-php/format-check.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -if [[ -z $CLANG_FORMAT ]] ; then - CLANG_FORMAT=clang-format -fi - -if NOT type $CLANG_FORMAT 2> /dev/null ; then - echo "No appropriate clang-format found." - exit 1 -fi - -FAIL=0 -SOURCE_FILES=`find src ext -type f \( -name '*.c' \)` -for i in $SOURCE_FILES -do - $CLANG_FORMAT -output-replacements-xml $i | grep -c "<replacement " > /dev/null - if [ $? -ne 1 ] - then - echo "$i failed clang-format check." - FAIL=1 - fi -done - -exit $FAIL |