filter singleton packages from pkg-deps.sh

This commit is contained in:
Jens Petersen 2011-02-09 18:31:32 +10:00
parent fea00ecd5b
commit 87eac70ff3

View File

@ -42,6 +42,9 @@ cp -p pkgs.dot pkgs.dot.orig
GHC_PKGS="array base-4 base-3 bin-package-db $(ghc-pkg --simple-output list bytestring) Cabal containers directory dph extensible-exceptions filepath ffi ghc-binary ghc-prim haskell98 hpc integer-gmp old-locale old-time pretty process random rts syb-0.1 template-haskell time unix Win32"
for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done
# remove singletons
sed -i -e /^"[^ ]*"$/d pkgs.dot
which tred &>/dev/null || { echo "graphviz is needed to generate graph" ; exit 1 ; }
cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg