diff options
author | makefu <root@pigstarter.de> | 2015-09-09 14:41:38 +0200 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2015-09-09 14:41:38 +0200 |
commit | 05bf2c8be209e619f8c9e727fd1353198b042642 (patch) | |
tree | 4f7a9439137fe78f979b235666a3533f9e249eca /retiolum/scripts/adv_graphgen/sanitize.sh | |
parent | e9e7d6baf986488c43d418887f6cf95f5d896189 (diff) |
begin packaging of tinc_stats
Diffstat (limited to 'retiolum/scripts/adv_graphgen/sanitize.sh')
-rwxr-xr-x | retiolum/scripts/adv_graphgen/sanitize.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/retiolum/scripts/adv_graphgen/sanitize.sh b/retiolum/scripts/adv_graphgen/sanitize.sh deleted file mode 100755 index f7d0e7e7..00000000 --- a/retiolum/scripts/adv_graphgen/sanitize.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -set -euf -cd $(dirname `readlink -f $0`) -GRAPH_SETTER1=dot -GRAPH_SETTER2=circo -GRAPH_SETTER3='neato -Goverlap=prism ' -GRAPH_SETTER4=sfdp -TYPE=svg -TYPE2=png -OPENER=/bin/true -DOTFILE=`mktemp --suffix=san` -trap 'rm $DOTFILE' INT TERM KILL EXIT -sudo -E python tinc_stats/Log2JSON.py |\ - python tinc_stats/Graph.py complete > $DOTFILE - - -i=1 -for setter in dot circo 'neato -Goverlap=prism ' sfdp -do - tmpgraph=`mktemp --tmpdir=$1` - $setter -T$TYPE -o $tmpgraph $DOTFILE - chmod go+rx $tmpgraph - mv $tmpgraph $1/retiolum_$i.$TYPE - i=`expr $i + 1` -done - -convert $1/retiolum_1.$TYPE $1/retiolum_1.$TYPE2 -#convert -resize 20% $1/retiolum_2.$TYPE $1/retiolum_2.$TYPE2 -#convert -resize 20% $1/retiolum_3.$TYPE $1/retiolum_3.$TYPE2 -#convert -resize 20% $1/retiolum_4.$TYPE $1/retiolum_4.$TYPE2 -rm $DOTFILE |