From f1aa2230f39d47effb974e1e87e0aa7a3739a94d Mon Sep 17 00:00:00 2001 From: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:22:07 +0000 Subject: [PATCH 1/2] ignore signgle line comment --- Builds/levelization/levelization.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Builds/levelization/levelization.sh b/Builds/levelization/levelization.sh index 3c43a23092f..ac6f53b417f 100755 --- a/Builds/levelization/levelization.sh +++ b/Builds/levelization/levelization.sh @@ -21,7 +21,7 @@ mkdir results includes="$( pwd )/results/rawincludes.txt" pushd ../.. echo Raw includes: -grep -r '#include.*/.*\.h' include src | \ +grep -r '^[^/]*#include.*/.*\.h' include src | \ grep -v boost | tee ${includes} popd pushd results From f503bfbea5e23e68b8e609294a092ed8489e3094 Mon Sep 17 00:00:00 2001 From: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:29:32 +0000 Subject: [PATCH 2/2] Update Builds/levelization/levelization.sh This is a more universal way to detect that the line is commented out. Co-authored-by: Ed Hennis --- Builds/levelization/levelization.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Builds/levelization/levelization.sh b/Builds/levelization/levelization.sh index ac6f53b417f..c18ca703f78 100755 --- a/Builds/levelization/levelization.sh +++ b/Builds/levelization/levelization.sh @@ -21,7 +21,7 @@ mkdir results includes="$( pwd )/results/rawincludes.txt" pushd ../.. echo Raw includes: -grep -r '^[^/]*#include.*/.*\.h' include src | \ +grep -r '^[ ]*#include.*/.*\.h' include src | \ grep -v boost | tee ${includes} popd pushd results