parity-zcash/tools/draw_graph.sh

24 lines
706 B
Bash
Raw Normal View History

2016-09-19 07:34:46 -07:00
#!/bin/bash
2016-11-08 08:01:15 -08:00
# Cargo graph does not work with cargo worspaces #33
# https://github.com/kbknapp/cargo-graph/issues/33
# so first we need to patch Cargo.toml and remove workspace
patch -R Cargo.toml tools/workspace.diff
# Now let's rebuild Cargo.lock by telling cargo to update local package
cargo update -p pbtc
# And draw dependencies graph using cargo graph
cargo graph --build-shape box --build-line-style dashed > tools/graph.dot
2016-12-09 13:32:04 -08:00
# Let's fix graph ratio
patch tools/graph.dot tools/graph_ratio.diff
dot -Tsvg > tools/graph.svg tools/graph.dot
2016-11-08 08:01:15 -08:00
# Finally let's bring back old Cargo.toml file
patch Cargo.toml tools/workspace.diff
2016-11-16 08:51:54 -08:00
# Now let's revert Cargo.lock to previous state
cargo update -p pbtc