Merge pull request #1305 from lihenggui/optimize_module_graph_script

Ensure folder setup and include instructions for Ubuntu users in generateModuleGraphs.sh
pull/1307/head
Don Turner 7 months ago committed by GitHub
commit d8566ad8e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -25,7 +25,9 @@
if ! command -v dot &> /dev/null if ! command -v dot &> /dev/null
then then
echo "The 'dot' command is not found. This is required to generate SVGs from the Graphviz files." echo "The 'dot' command is not found. This is required to generate SVGs from the Graphviz files."
echo "On macOS, you can install it using Homebrew: 'brew install graphviz'" echo "Installation instructions:"
echo " - On macOS: You can install Graphviz using Homebrew with the command: 'brew install graphviz'"
echo " - On Ubuntu: You can install Graphviz using APT with the command: 'sudo apt-get install graphviz'"
exit 1 exit 1
fi fi
@ -50,6 +52,9 @@ done
# Get the module paths # Get the module paths
module_paths=$(./gradlew -q printModulePaths --no-configuration-cache) module_paths=$(./gradlew -q printModulePaths --no-configuration-cache)
# Ensure the output directory exists
mkdir -p docs/images/graphs/
# Function to check and create a README.md for modules which don't have one. # Function to check and create a README.md for modules which don't have one.
check_and_create_readme() { check_and_create_readme() {
local module_path="$1" local module_path="$1"

Loading…
Cancel
Save