]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Small correction
authorinv <inv@opencascade.com>
Wed, 28 Apr 2010 07:07:37 +0000 (07:07 +0000)
committerinv <inv@opencascade.com>
Wed, 28 Apr 2010 07:07:37 +0000 (07:07 +0000)
config_files/YACSGEN.sh

index 454a223baaab845d96de840ea6483977f5dccc95..da7ef1b88912d69746f99fdf6ce170240a84d4d1 100755 (executable)
@@ -16,7 +16,7 @@ check_version(){
 if [ -n "${YACSGEN_SRC_DIR}" ]; then
     cfg_file=setup.py   
     if [ -f ${YACSGEN_SRC_DIR}/${cfg_file} ] ; then
-       ver=`grep -e "version" ${YACSGEN_SRC_DIR}/${cfg_file} | sed s/\[A-z=,\']//g`
+       ver=`grep -e "version=" ${YACSGEN_SRC_DIR}/${cfg_file} | sed s/\'/" "/g | awk '{print $2}'`
        if [ "$ver" = "${YACSGEN_VERSION}" ]; then
            return 0
        fi