Salome HOME
Issue #737 - parameter does not change in extrusion
[modules/shaper.git] / linux_run.sh
index 7e06fb1b0d96f662506c874c4e45c9edb0928d8b..d6f768320f52594fe25fff7173d516794a991c24 100755 (executable)
@@ -1,10 +1,14 @@
-#!/bin/sh
+#!/bin/bash
+
 # Find absolute path to ROOT_DIR
 export ROOT_DIR=$(pwd)/..
 export ROOT_DIR=`cd "${ROOT_DIR}";pwd`
 
 SRC_DIR=${ROOT_DIR}/sources
+source ${SRC_DIR}/salome_env.sh
+source ${SRC_DIR}/linux_env.sh $1
 
-source ${SRC_DIR}/linux_env.sh
+INSTALL_DIR=install
+if [ $1 ]; then INSTALL_DIR=${INSTALL_DIR}-$1; fi
 
-${ROOT_DIR}/install/bin/GeomApp
+${ROOT_DIR}/${INSTALL_DIR}/bin/GeomApp