]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Fix pb with modif config files procedure
authorvsr <vsr@opencascade.com>
Fri, 20 Dec 2013 12:29:19 +0000 (12:29 +0000)
committervsr <vsr@opencascade.com>
Fri, 20 Dec 2013 12:29:19 +0000 (12:29 +0000)
config_files/common.sh

index 33dc2cf1552c30097db0a604341ecf4825db2ace..9f7bb6db4081ae7d7b6ccaa6b722a9871d738d70 100755 (executable)
@@ -1049,7 +1049,7 @@ modif_cfg_file(){
        CALCULATOR PYCALCULATOR COMPONENT HELLO PYHELLO LIGHT PYLIGHT ATOMIC ATOMGEN ATOMSOLV RANDOMIZER SIERPINSKY ; do
        smvar=${sm}_ROOT_DIR
        if [ "${!smvar}" != "" ] ; then
-           sed -i "s%\([^/]*\)[^; ]*/${sm}[^/\"]*%\1${!smvar}%g" $1
+            sed -i "s%\([; \"]\)/[^; \"]\+/${sm}\([; \"/]\)%\1${!smvar}\2%g" $1
        fi
     done
 }