You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
685 B
24 lines
685 B
#!/bin/sh
|
|
|
|
# script to generate dependency graph for fedora haskell libraries
|
|
# requires ghc, ghc-*-devel and graphviz to be installed
|
|
|
|
set -e
|
|
|
|
mkdir -p .pkg-deps
|
|
|
|
cd .pkg-deps
|
|
|
|
ghc-pkg dot --global > pkgs.dot
|
|
|
|
cp -p pkgs.dot pkgs.dot.orig
|
|
|
|
GHC_PKGS="array base-4 base-3 bin-package-db bytestring Cabal containers directory dph extensible-exceptions filepath ghc-6.12 ghc-binary ghc-prim haskell98 hpc integer-gmp old-locale old-time pretty process random syb template-haskell time unix utf8-string-0.3.4 Win32"
|
|
|
|
# ignore library packages provided by ghc
|
|
for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done
|
|
|
|
cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg
|
|
|
|
xdg-open pkgs.svg
|