]> SALOME platform Git repositories - tools/install.git/blobdiff - config_files/build.csh
Salome HOME
Fix a bug: after installation of omni binaries it is necessary to correct path to...
[tools/install.git] / config_files / build.csh
index d768ce79b56a8c93f8653f5e1ddd38ced841e52c..50529458e51714832763918b2a49bb2e0189df7b 100755 (executable)
@@ -236,7 +236,7 @@ foreach module (${modules})
     #########################################################
     set vx=""
     if ( -e ${module_src}/bin/VERSION ) then
-       set vx=`awk -F: '{split ( $2,x," " ) ; print x[1];}' ${module_src}/bin/VERSION`
+       set vx=`awk -F: '{ if (NF > 1) print $NF; }' ${module_src}/bin/VERSION | tr -d '[:space:]'`
     endif
     set px=${BUILD_DIR}/${module}
     if ( "$prefix" != "" ) then