Salome HOME
Update of pictures by ABA
[modules/shaper.git] / linux_run.sh
index daff08a03cd36559bb23e12a8301c8c70e82c738..10b6112649585f749c2ddff49c7b1698c0e57db4 100755 (executable)
@@ -1,8 +1,17 @@
 #!/bin/bash
 
-cd $(dirname $0)
+a_dir=$(dirname $0)
 
-source env.sh
-source env_standalone.sh
+cd ${a_dir}
 
-${INSTALL_DIR}/bin/GeomApp "$@"
+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