Linux puskom-ProLiant-DL385-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64
/
home
/
puskom
/
mastur
/
backwpup
/
vendor
/
aws
/
aws-crt-php
/
//home/puskom/mastur/backwpup/vendor/aws/aws-crt-php/format-check.sh
#!/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