From 460556ff45f6783dce53bf47594a03f4d19d05fe Mon Sep 17 00:00:00 2001 From: abrahamsonn Date: Fri, 5 Apr 2019 13:46:35 -0600 Subject: [PATCH] Updated doxygen script Changed check_api.sh grep call to be more friendly across machines, prior call wasn't properly reporting API mismatch on some machines --- doc/check_api.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/check_api.sh b/doc/check_api.sh index 2d38390ab..612ee924b 100755 --- a/doc/check_api.sh +++ b/doc/check_api.sh @@ -2,7 +2,7 @@ ls ./dox_comments/header_files/ | while read h_file; do - grep -P -h -z -o 'WOLFSSL_API(\n|\s|[^;])*;' ./dox_comments/header_files/$h_file | + grep -h --null -o 'WOLFSSL_API(\n|\s|[^;])*;' ./dox_comments/header_files/$h_file | tr '\n' ' ' | sed 's/\\n//g' | sed 's/ \+/ /g' | @@ -11,7 +11,7 @@ while read h_file; do find ../ -not -path '../doc/*' -name $h_file | while read -r h_file_path; do echo "Checking: $h_file_path" - grep -P -h -z -o 'WOLFSSL_API(\n|\s|[^;])*;' "$h_file_path" | + grep -h --null -o 'WOLFSSL_API(\n|\s|[^;])*;' "$h_file_path" | sed 's/#.*/ /g' | tr '\n' ' ' | sed 's/\\n//g' |