|
|
@ -31,6 +31,19 @@ then
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check for a version of grep which supports Perl regex.
|
|
|
|
|
|
|
|
# On MacOS the OS installed grep doesn't support Perl regex so check for the existence of the
|
|
|
|
|
|
|
|
# GNU version instead which is prefixed with 'g' to distinguish it from the OS installed version.
|
|
|
|
|
|
|
|
if grep -P "" /dev/null > /dev/null 2>&1; then
|
|
|
|
|
|
|
|
GREP_COMMAND=grep
|
|
|
|
|
|
|
|
elif command -v ggrep &> /dev/null; then
|
|
|
|
|
|
|
|
GREP_COMMAND=ggrep
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "You don't have a version of 'grep' installed which supports Perl regular expressions."
|
|
|
|
|
|
|
|
echo "On MacOS you can install one using Homebrew with the command: 'brew install grep'"
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Initialize an array to store excluded modules
|
|
|
|
# Initialize an array to store excluded modules
|
|
|
|
excluded_modules=()
|
|
|
|
excluded_modules=()
|
|
|
|
|
|
|
|
|
|
|
@ -50,7 +63,7 @@ while [[ $# -gt 0 ]]; do
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# Get the module paths
|
|
|
|
# Get the module paths
|
|
|
|
module_paths=$(./gradlew -q printModulePaths --no-configuration-cache)
|
|
|
|
module_paths=$(${GREP_COMMAND} -oP 'include\("\K[^"]+' settings.gradle.kts)
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure the output directory exists
|
|
|
|
# Ensure the output directory exists
|
|
|
|
mkdir -p docs/images/graphs/
|
|
|
|
mkdir -p docs/images/graphs/
|
|
|
|