From 1135618ddeecf60c408fb34523085ce5a7ef754e Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 13 Feb 2011 22:53:48 +1000 Subject: [PATCH] fix singleton sed --- pkg-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg-deps.sh b/pkg-deps.sh index 5387c43..4cb0011 100755 --- a/pkg-deps.sh +++ b/pkg-deps.sh @@ -43,7 +43,7 @@ GHC_PKGS="array base-4 base-3 bin-package-db $(ghc-pkg --simple-output list byte for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done # remove singletons -sed -i -e /^"[^ ]*"$/d pkgs.dot +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