From 8424edb7bf9e5d66cd820b8c7ad9ca0575459e5f Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Mon, 2 Sep 2013 18:37:56 +0200 Subject: [PATCH] add head and tail to graphviz output and all title of tables and users at the bottom of it --- bin/girones.sh | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/bin/girones.sh b/bin/girones.sh index cc16e44..3500b39 100755 --- a/bin/girones.sh +++ b/bin/girones.sh @@ -1,6 +1,7 @@ #!/bin/bash # set -x - +NL=" +" # # functions usage () { @@ -23,11 +24,24 @@ if [ ! -f "$finname" ]; then fi source "$finname" +tai="" +cat < +digraph G { +fillcolor="#f0f0f0"; +// bgcolor="transparent"; +bgcolor="#fafafa"; +newrank=true; +rankdir="LR"; +ranksep=1.5; +compound=true; +EOF for gen_id in $(seq 0 $((${#gens_prefix[@]} - 1))); do echo "// GENERATION ${gens_prefix[$gen_id]}" names_n="$(echo "${gens_names[$gen_id]}" | sed 's/|/\n/g' | wc -l)" for name_id in $(seq 0 $((names_n - 1))); do hue="$(echo "($name_id * 255 ) / $names_n" | bc -l)" + # hue=180.0 col100="$(./rgb_hsv.php -toxrgb 255 $hue 255.0 255.0)" col33="$(./rgb_hsv.php -toxrgb 255 $hue 85.0 255.0)" col17="$(./rgb_hsv.php -toxrgb 255 $hue 42.0 255.0)" @@ -39,7 +53,7 @@ for gen_id in $(seq 0 $((${#gens_prefix[@]} - 1))); do name="${gens_prefix[$gen_id]}" fi echo "// [${name}][$col100][$col33][$col17]" -cat <aaa|<2>bbb|<3>ccc|<4>ddd|<5>eee\"];}${NL}" done done @@ -94,5 +109,10 @@ for gen_id in $(seq 0 $((${#gens_prefix[@]} - 1))); do done done +cat < +EOF exit 0 -- 2.17.1