Created
November 19, 2012 15:02
-
-
Save waj/4111135 to your computer and use it in GitHub Desktop.
Draw dependencies of installed homebrew packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function dump() { | |
echo "digraph homebrew {" | |
for pkg in `brew list`; do | |
for dep in `brew deps --1 $pkg`; do | |
echo "\"$pkg\" -> \"$dep\";" | |
done | |
done | |
echo "}" | |
} | |
dump | dot -o brewdeps.png -Tpng |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment