Salome HOME
Add feature rotation without tests.
[modules/shaper.git] / linux_run.sh
index 79ed96720ba865965c80dcf5f205a8fd376f3adb..10b6112649585f749c2ddff49c7b1698c0e57db4 100755 (executable)
@@ -1,11 +1,17 @@
-#!/bin/sh
+#!/bin/bash
 
-# Find absolute path to ROOT_DIR
-export ROOT_DIR=$(pwd)/..
-export ROOT_DIR=`cd "${ROOT_DIR}";pwd`
+a_dir=$(dirname $0)
 
-SRC_DIR=${ROOT_DIR}/sources
+cd ${a_dir}
 
-source ${SRC_DIR}/linux_env.sh
+source ${a_dir}/env.sh
+source ${a_dir}/env_standalone.sh
 
-${ROOT_DIR}/install/bin/GeomApp
+if [ -f GDB ]; then
+  ${INSTALL_DIR}/bin/GeomApp >>log_GeomApp 2>>err_GeomApp &
+  APP_PID=$!
+  echo "Connecting GDB to PID ${APP_PID}..."
+  gdb - ${APP_PID} >>log_gdb_linux 2>>err_gdb_linux
+else
+  ${INSTALL_DIR}/bin/GeomApp
+fi