Salome HOME
Optimize the process of stability flag changes (and concealment update): now only...
[modules/shaper.git] / linux_run.sh
index b8968cc17d46949b753c63ed1c085f89c00ca5e5..10b6112649585f749c2ddff49c7b1698c0e57db4 100755 (executable)
@@ -1,6 +1,17 @@
 #!/bin/bash
 
-source env.sh
-source env_standalone.sh
+a_dir=$(dirname $0)
 
-${INSTALL_DIR}/bin/GeomApp
+cd ${a_dir}
+
+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