pkg-deps.sh: check for graphviz

This commit is contained in:
Jens Petersen 2010-09-24 12:35:22 +10:00
parent 6453beb234
commit 96dece0e90

View File

@ -41,6 +41,7 @@ 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 ffi ghc-binary ghc-prim haskell98 hpc integer-gmp old-locale old-time pretty process random rts syb template-haskell time unix Win32"
for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done
which tred >/dev/null
cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg
if [ -n "$DISPLAY" ]; then