pkg-deps.sh: comment list binlib progs and warn about missing graphviz
This commit is contained in:
parent
96dece0e90
commit
a90b89c92a
@ -13,7 +13,8 @@ cd .pkg-deps
|
||||
ghc-pkg dot --global | sed '$d' > pkgs.dot
|
||||
|
||||
# check for binary deps too
|
||||
for i in alex cabal-install cpphs darcs ghc happy gtk2hs-buildtools haskell-platform hscolour xmobar xmonad; do
|
||||
# (exclude binlib for now since covered by libs): cpphs, darcs, hlint, hscolour, xmonad
|
||||
for i in alex cabal-install ghc happy gtk2hs-buildtools haskell-platform xmobar; do
|
||||
PKG_THERE=yes
|
||||
PKG=`rpm -q --qf "%{name}-%{version}" $i` || { PKG_THERE=no ; echo "missing $i" ; }
|
||||
if [ "$PKG_THERE" = "yes" ]; then
|
||||
@ -41,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"
|
||||
for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done
|
||||
|
||||
which tred >/dev/null
|
||||
which tred &>/dev/null || { echo Please install graphviz ; exit 1 ; }
|
||||
cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg
|
||||
|
||||
if [ -n "$DISPLAY" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user