Salome HOME
Make MPI product optional
[samples/component.git] / build_configure
index 5e75cdd0cfa1bf230c3bf5ae07e0a9bb76ccc0bb..8dc1b2dbf325381acbcc5a7c0b9bbb5e83e05bb6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 #
 # Tool for updating list of .in file for the SALOME project 
@@ -58,8 +58,8 @@ fi
 
 find_in()
 {
-  local i
-  local f=$2
+  i=0
+  f=$2
 
 # if the first argument is not a directory, returns
 
@@ -110,8 +110,10 @@ ABS_CONF_DIR=`pwd`
 # Common part of the configure.in file
 #
 chmod u+w configure.in.base
-if \cp -f configure.in.base configure.in_tmp1 
+if \cp -f configure.in.base configure.in_tmp1 
 then
+        echo
+else
        echo
        echo "error : can't create files in" ${CONF_DIR}
        echo "aborting ..."
@@ -194,8 +196,10 @@ then
        fi
 else
        echo -n "Updating 'configure.in' file ... "
-       if \cp configure.in configure.in_old >& /dev/null
+       if \cp configure.in configure.in_old >& /dev/null
        then
+                echo
+       else
                echo
                echo
                echo "Can't backup previous configure.in"