Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update of pictures by ABA
[modules/shaper.git]
/
linux_run.sh
diff --git
a/linux_run.sh
b/linux_run.sh
index b67ae15e052e820ec5c5fcd29b63ceaf5159d40d..10b6112649585f749c2ddff49c7b1698c0e57db4 100755
(executable)
--- a/
linux_run.sh
+++ b/
linux_run.sh
@@
-1,11
+1,17
@@
#!/bin/bash
#!/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