Lines Matching +full:- +full:- +full:count
2 # SPDX-License-Identifier: BSD-2-Clause
6 basepath="$(dirname $(dirname $(readlink -f "$0")))"
8 details () [[ ${SHOW_DETAILS} -ne 0 ]]
12 SYMBOL_LIST="$(grep PKCS11\_$PREFIX\_ ${basepath}/include/pkcs11_ta.h | cut -f2 | cut '-d ' -f1)"
13 details && echo -e "\e[4m${PREFIX}\e[0m"
15 details && echo -e "symbol\tuses\tstatus"
17 details && echo -n "$symbol"
18 COUNT="$(grep ${symbol} ${basepath}/src/* | wc -l)"
19 details && echo -n -e "\t${COUNT}\t"
20 PRESENT="$(grep PKCS11_ID.*\($symbol.*\) ${basepath}/src/pkcs11_helpers.c | wc -l)"
21 if [ ${PRESENT} -ne 0 ] ; then
22 details && echo -e "\e[32mOK\e[0m"
23 elif [ $COUNT -eq 0 ] ; then
24 details && echo -e "\e[33mmissing but unused\e[0m"
26 details && echo -e "\e[31mMISSING!\e[0m"
35 …(grep PKCS11\_$PREFIX\_ ${basepath}/include/pkcs11_ta.h | grep ^#define | cut '-d ' -f2 | cut -f1)"
36 details && echo -e "\e[4m${PREFIX}\e[0m"
38 details && echo -e "symbol\tuses\tstatus"
40 details && echo -n "$symbol"
41 COUNT="$(grep ${symbol} ${basepath}/src/* | wc -l)"
42 details && echo -n -e "\t${COUNT}\t"
43 PRESENT="$(grep PKCS11_ID.*\($symbol.*\) ${basepath}/src/pkcs11_helpers.c | wc -l)"
44 if [ ${PRESENT} -ne 0 ] ; then
45 details && echo -e "\e[32mOK\e[0m"
46 elif [ $COUNT -eq 0 ] ; then
47 details && echo -e "\e[33mmissing but unused\e[0m"
49 details && echo -e "\e[31mMISSING!\e[0m"
59 echo " $SCR --quiet Only print errors"
60 echo " $SCR --help This help"
68 while [[ $# -gt 0 ]]; do
73 -q|--quiet)
76 -h|--help)
95 if [ -n "${ERRORS}" ] ; then