Skip to content

Commit d8566ad

Browse files
authored
Merge pull request #1305 from lihenggui/optimize_module_graph_script
Ensure folder setup and include instructions for Ubuntu users in generateModuleGraphs.sh
2 parents 0ed9528 + 3534a6f commit d8566ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

generateModuleGraphs.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
if ! command -v dot &> /dev/null
2626
then
2727
echo "The 'dot' command is not found. This is required to generate SVGs from the Graphviz files."
28-
echo "On macOS, you can install it using Homebrew: 'brew install graphviz'"
28+
echo "Installation instructions:"
29+
echo " - On macOS: You can install Graphviz using Homebrew with the command: 'brew install graphviz'"
30+
echo " - On Ubuntu: You can install Graphviz using APT with the command: 'sudo apt-get install graphviz'"
2931
exit 1
3032
fi
3133

@@ -50,6 +52,9 @@ done
5052
# Get the module paths
5153
module_paths=$(./gradlew -q printModulePaths --no-configuration-cache)
5254

55+
# Ensure the output directory exists
56+
mkdir -p docs/images/graphs/
57+
5358
# Function to check and create a README.md for modules which don't have one.
5459
check_and_create_readme() {
5560
local module_path="$1"

0 commit comments

Comments
 (0)