[Pkg-haskell-commits] darcs: tools: Document the pipeline to greate the graph

Joachim Breitner mail at joachim-breitner.de
Wed Aug 4 20:27:20 UTC 2010


Wed Aug  4 20:14:02 UTC 2010  Joachim Breitner <mail at joachim-breitner.de>
  * Document the pipeline to greate the graph
  Ignore-this: e7de33f456f2c7e3876e745412d8032b

    A ./gengraph.sh
    M ./haskell-pkg-graph.py -1 +2

Wed Aug  4 20:14:02 UTC 2010  Joachim Breitner <mail at joachim-breitner.de>
  * Document the pipeline to greate the graph
  Ignore-this: e7de33f456f2c7e3876e745412d8032b
diff -rN -u old-tools/gengraph.sh new-tools/gengraph.sh
--- old-tools/gengraph.sh	1970-01-01 00:00:00.000000000 +0000
+++ new-tools/gengraph.sh	2010-08-04 20:27:20.113472138 +0000
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+python haskell-pkg-graph.py | tred | dot -Tpdf -Gmclimit=400.0 -Gnslimit=400.0 -Granksep=2 -Grankdir=LR -Gsplines=ortho -Nshape=box -o haskell-pkg-graph.pdf
diff -rN -u old-tools/haskell-pkg-graph.py new-tools/haskell-pkg-graph.py
--- old-tools/haskell-pkg-graph.py	2010-08-04 20:27:20.109471925 +0000
+++ new-tools/haskell-pkg-graph.py	2010-08-04 20:27:20.117472351 +0000
@@ -202,7 +202,8 @@
                 colour="red"
             else:
                 colour="darkgreen"
-            print '%s [label="%s",style=filled,color="%s"]' % (hash(src['package']), src['package'], colour)
+            name = src['package'].replace("haskell-","-")
+            print '%s [label="%s",style=filled,color="%s"]' % (hash(src['package']), name, colour)
             # check recursively the build-dependencies if something already
             # needs to be rebuild
             rels = PkgRelation.parse_relations(src['build-depends'])





More information about the Pkg-haskell-commits mailing list