fix singleton sed

This commit is contained in:
Jens Petersen 2011-02-13 22:53:48 +10:00
parent 282277c016
commit 2c5003301b

View File

@ -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 for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done
# remove singletons # 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 ; } 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