Skip to content

Commit

Permalink
build: gitignore graph script output
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jun 19, 2023
1 parent 005bb29 commit 9246f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dist
.vscode/
.idea/

/packages.png
/packages-graph*

chaintest
_testoutput.txt
4 changes: 2 additions & 2 deletions scripts/graph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ dot -Tpng <packages-graph.dot >"$DIR"/../packages-graph.png

dot -Tsvg <packages-graph.dot >"$DIR"/../packages-graph.svg

if acyclic packages-graph.dot | dot -Tcanon >packages-sans-cycles.dot; then
if acyclic packages-graph.dot | dot -Tcanon >packages-graph-sans-cycles.dot; then
echo "No cycles in 'dependencies' of packages."
else
echo "Cycles detected. These lines appear only in the original graph and not the acyclic variant:"
comm -23 <(sort packages-graph.dot) <(sort packages-sans-cycles.dot)
comm -23 <(sort packages-graph.dot) <(sort packages-graph-sans-cycles.dot)
fi

0 comments on commit 9246f8e

Please sign in to comment.