Revision history for CDependencyGraph


Revision [16138]

Last edited on 2013-03-30 02:40:52 by ToBo
Additions:
I wrote a script to create a module dependency graph from a set of files using [[graphviz]]. This script works only for [[C]].
Deletions:
I wrote a script to create a module dependency graph from a set of files written in [[C]] using [[graphviz]].


Revision [16137]

Edited on 2013-03-30 02:40:06 by ToBo
Additions:
I wrote a script to create a module dependency graph from a set of files written in [[C]] using [[graphviz]].
Deletions:
I wrote a script to create a module dependency graph using [[graphviz]].


Revision [16136]

Edited on 2013-03-30 02:39:15 by ToBo
Additions:
I wrote a script to create a module dependency graph using [[graphviz]].
Deletions:
I wrote a script to create a module dependency graph using [[graphviz.]]


Revision [16135]

Edited on 2013-03-30 02:38:38 by ToBo
Additions:
I wrote a script to create a module dependency graph using [[graphviz.]]
You need to change the project path to run the script.
Deletions:
I wrote a script to create a module dependency graph using graphviz.
echo "create small picture..."
convert -resize 50%x50% rat2moddep.png rat2modddep_s.png


Revision [16134]

Edited on 2013-03-30 02:34:46 by ToBo
Additions:
=====C-Module dependency graph=====
I wrote a script to create a module dependency graph using graphviz.
The graph shows how the modules are dependent.
Deletions:
=====Abhängigkeitsgraph der C-Module mit graphviz erstellen=====


Revision [16133]

Edited on 2013-03-30 02:32:28 by ToBo
Additions:
=====Abhängigkeitsgraph der C-Module mit graphviz erstellen=====
==a==Result==a==
{{image url="images/rat2src_s.png" alt=""}}
==a==Script==a==
%%(bash)
#!/bin/bash
# Author: Andreas Tobola
# http://www.tnotes.de/CDependencyGraph
FILE_OUT="rat2src.dot"
echo "digraph G {" > $FILE_OUT
echo "rankdir=LR;" >> $FILE_OUT
echo "fontsize=24;" >> $FILE_OUT
for mfile in `ls ./rat2src`
do
module=`echo $mfile | sed 's/[.]/ /' | awk '{print $1}'`
echo $module" ("$mfile")"
modlist=`cat ./rat2src/$mfile | grep -v '<' | grep '#include'| awk '{print $2}' | sed 's/<//g' | sed 's/>//g' | sed 's/[.]/ /g' | sed 's/"//g' | awk '{print $1}' | grep -v $module`
for link in $modlist
do
echo " "$link
echo "\""$module"\" -> \""$link"\"" >> $FILE_OUT
done
done
echo "}" >> $FILE_OUT
echo "graphviz..."
dot -Tpng $FILE_OUT -o rat2moddep.png
echo "create small picture..."
convert -resize 50%x50% rat2moddep.png rat2modddep_s.png
%%
Deletions:
=====Titel=====


Revision [16131]

The oldest known version of this page was created on 2013-03-30 02:25:30 by ToBo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki