From: inv Date: Mon, 31 May 2010 06:11:56 +0000 (+0000) Subject: Update for 6.1.0 X-Git-Tag: V5_1_4~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c1ae591102630a314ab2069d279100918b38d37;p=tools%2Finstall.git Update for 6.1.0 --- diff --git a/config_files/graphviz-2.24.0.sh b/config_files/graphviz-2.24.0.sh index 846e72c..785256a 100755 --- a/config_files/graphviz-2.24.0.sh +++ b/config_files/graphviz-2.24.0.sh @@ -16,7 +16,7 @@ check_version() { isdot=`which dot 2>/dev/null` if [ -n "$isdot" ]; then - ver=`dot -V 2>&1 | awk '{print $5}'` + ver=`dot -V 2>&1 | sed -e "s%[A-z-]%%g" | awk '{print $1}'` maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`