2 # script args: source_file target_file
5 if [ ! -z "$USE_CLUSTERS" ]; then
6 use_clusters=$USE_CLUSTERS
10 # file will be modified in place
11 include_dot_snippet ()
13 echo "Adding to $1 graphviz snipet $2 ..."
14 sed -i "/digraph/r $2" $1
21 echo "Applying to $1 patch $2 ..."
27 apply_patch $2 deps.patch
28 include_dot_snippet $2 daemons.dot
29 if [ "$use_clusters" = "yes" ]; then
30 include_dot_snippet $2 clusters.dot