Salome HOME
Add feature rotation without tests.
[modules/shaper.git] / linux_run.sh
index d6f768320f52594fe25fff7173d516794a991c24..10b6112649585f749c2ddff49c7b1698c0e57db4 100755 (executable)
@@ -1,14 +1,17 @@
 #!/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
-source ${SRC_DIR}/salome_env.sh
-source ${SRC_DIR}/linux_env.sh $1
+cd ${a_dir}
 
-INSTALL_DIR=install
-if [ $1 ]; then INSTALL_DIR=${INSTALL_DIR}-$1; fi
+source ${a_dir}/env.sh
+source ${a_dir}/env_standalone.sh
 
-${ROOT_DIR}/${INSTALL_DIR}/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