diff options
Diffstat (limited to 'retiolum')
-rwxr-xr-x | retiolum/scripts/adv_graphgen/sanitize.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/retiolum/scripts/adv_graphgen/sanitize.sh b/retiolum/scripts/adv_graphgen/sanitize.sh index 5572b9d9..50f1659f 100755 --- a/retiolum/scripts/adv_graphgen/sanitize.sh +++ b/retiolum/scripts/adv_graphgen/sanitize.sh @@ -1,5 +1,5 @@ #!/bin/sh -set -xeuf +set -euf cd $(dirname `readlink -f $0`) GRAPH_SETTER1=dot GRAPH_SETTER2=circo @@ -21,10 +21,12 @@ do tmpgraph=`mktemp --tmpdir=$1` $setter -T$TYPE -o $tmpgraph $DOTFILE chmod go+rx $tmpgraph - mv $tmpgraph $1retiolum_$i.$TYPE + mv $tmpgraph $1/retiolum_$i.$TYPE i=`expr $i + 1` done + #convert -resize 20% $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 |