From c698ee76c3d555ccee04d7e3885425a7077888e2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 25 May 2010 04:13:45 +0000 Subject: [PATCH] script to generate dependency graph of fedora haskell packages --- pkg-deps.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 pkg-deps.sh diff --git a/pkg-deps.sh b/pkg-deps.sh new file mode 100755 index 0000000..b181215 --- /dev/null +++ b/pkg-deps.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +mkdir -p .pkg-deps + +cd .pkg-deps + +ghc-pkg dot --global > pkgs.dot + +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 ghc-6.12 ghc-binary ghc-prim haskell98 hpc integer-gmp old-locale old-time pretty process random syb template-haskell time unix Win32" + +# ignore library packages provided by ghc +for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done + +cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg