Salome HOME
Add feature rotation without tests.
[modules/shaper.git] / linux_run.sh
old mode 100644 (file)
new mode 100755 (executable)
index 5104f9f..10b6112
@@ -1,10 +1,17 @@
-#!/bin/sh
-# Find absolute path to ROOT_DIR
-export ROOT_DIR=$(pwd)/..
-export ROOT_DIR=`cd "${ROOT_DIR}";pwd`
+#!/bin/bash
 
-SRC_DIR=${ROOT_DIR}/sources
+a_dir=$(dirname $0)
 
-source ${SRC_DIR}/linux_env.sh
+cd ${a_dir}
 
-${ROOT_DIR}/install/bin/XGUI
+source ${a_dir}/env.sh
+source ${a_dir}/env_standalone.sh
+
+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