Skip to content
Snippets Groups Projects
Commit bdc0992f authored by Steven Murray's avatar Steven Murray
Browse files

Added a library dependency graph for libcastortape.so to the tape documentation

parent 0ec44298
Branches
Tags
No related merge requests found
How to generate collaboration diagrams from the source in this directory
========================================================================
1. Install dot by installing the Graphviz package. Instructions can
be found here:
http://www.graphviz.org
2. Run the helper script generatesvg.sh located in this directory
digraph castor_library_dependencies {
rankdir=LR;
node [shape = oval];
edge [weight = 1];
castortape -> castordlf
castortape -> castorvmgr
castordlf -> castorcommon
castorvmgr -> castorupv
castorvmgr -> castorcommon
castorupv -> castorcommon
castortape -> castorcommon
castorcommon -> uuid
}
#!/bin/sh
if test "x$CASTOR_SRC" = x; then
echo "Error: The environment variable CASTOR_SRC is not set"
echo
echo "CASTOR_SRC should be the full path to the CASTOR source code"
echo
echo " export CASTOR_SRC=/usr/local/src/CASTOR_SVN_CO/trunk"
echo
exit -1
fi
if test ! -d $CASTOR_SRC; then
echo "Error: The directory specified by CASTOR_SRC does not exist"
echo
echo "CASTOR_SRC=\"$CASTOR_SRC\""
echo
exit -1
fi
DEPENDENCY_DIR="$CASTOR_SRC/castor/tape/doc/dependency_diagrams"
if test ! -d $DEPENDENCY_DIR; then
echo "Error: The following directory does not exist"
echo
echo "\"$DEPENDENCY_DIR\""
echo
exit -1
fi
which dot > /dev/null
if test $? -ne 0; then
echo "Error: The dot command is not on the path"
echo
exit -1
fi
DOTS=`ls $DEPENDENCY_DIR/*.dot`
for DOT in $DOTS; do
SVG=`echo $DOT | sed 's/\.dot$/.svg/'`
echo "Generating $SVG"
if test ! -f $DOT; then
echo "Error: The following dot file does not exist:"
echo
echo "\"$DOT\""
echo
exit -1
fi
dot -T svg $DOT > $SVG
done
exit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment