rpms/ghc/devel pkg-deps.sh,1.8,1.9
Jens Petersen
petersen at fedoraproject.org
Mon Jun 28 05:52:48 UTC 2010
Author: petersen
Update of /cvs/extras/rpms/ghc/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv31417
Modified Files:
pkg-deps.sh
Log Message:
more hacks to add singleton packages
Index: pkg-deps.sh
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/pkg-deps.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- pkg-deps.sh 24 Jun 2010 23:52:16 -0000 1.8
+++ pkg-deps.sh 28 Jun 2010 05:52:48 -0000 1.9
@@ -12,11 +12,12 @@ cd .pkg-deps
# remove the closing line
ghc-pkg dot --global | sed '$d' > pkgs.dot
-# check for binary deps too (but not binlib)
-for i in alex cabal-install happy haskell-platform hedgewars hlint kaya; do
+# check for binary deps too
+for i in alex cabal-install cpphs darcs ghc happy haskell-platform hedgewars hscolour kaya xmonad; do
PKG_THERE=yes
PKG=`rpm -q --qf "%{name}-%{version}" $i` || PKG_THERE=no
if [ "$PKG_THERE" = "yes" ]; then
+ echo \"$PKG\" >> pkgs.dot
case $i in
haskell-platform)
rpm -q --requires $i | grep -v rpmlib | grep -v ghc | sed -e "s/^/\"$PKG\" -> \"/g" -e "s/ = \(.*\)/-\1\"/" >> pkgs.dot
@@ -28,6 +29,9 @@ for i in alex cabal-install happy haskel
fi
done
+# make sure all libs there
+rpm -qa --qf "\"%{name}-%{version}\"\n" ghc-\* | egrep -v -- "(ghc-libs|-prof|-devel|-doc)-" | sed -e s/^\"ghc-/\"/g >> pkgs.dot
+
# and add it back
echo "}" >> pkgs.dot
@@ -41,4 +45,6 @@ cat pkgs.dot | tred | dot -Nfontsize=8 -
if [ -n "$DISPLAY" ]; then
xdg-open pkgs.svg
+else
+ echo open ".pkg-deps/pkgs.svg" to display pkg graph
fi
More information about the scm-commits
mailing list