better missing graphviz message
This commit is contained in:
parent
a90b89c92a
commit
ebe2874e17
@ -42,7 +42,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"
|
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
|
for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done
|
||||||
|
|
||||||
which tred &>/dev/null || { echo Please install graphviz ; exit 1 ; }
|
which tred &>/dev/null || { echo "graphviz is needed to generate graph" ; exit 1 ; }
|
||||||
cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg
|
cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg
|
||||||
|
|
||||||
if [ -n "$DISPLAY" ]; then
|
if [ -n "$DISPLAY" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user