script to generate dependency graph of fedora haskell packages

This commit is contained in:
Jens Petersen 2010-05-25 04:13:45 +00:00
parent 16ee9ca997
commit c698ee76c3

18
pkg-deps.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
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 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