From ebb79e2ae95ececd29e57a7600de3e4bfd45dd81 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 9 Feb 2011 18:31:32 +1000 Subject: [PATCH] filter singleton packages from pkg-deps.sh --- pkg-deps.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg-deps.sh b/pkg-deps.sh index 1bcb6ee..5387c43 100755 --- a/pkg-deps.sh +++ b/pkg-deps.sh @@ -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