Salome HOME
Add GCOV to Linux scripts
[modules/shaper.git] / linux_run.sh
1 #!/bin/bash
2
3 a_dir=$(dirname $0)
4
5 cd ${a_dir}
6
7 source ${a_dir}/env.sh
8 source ${a_dir}/env_standalone.sh
9
10 if [ -f GDB ]; then
11   ${INSTALL_DIR}/bin/GeomApp &
12   APP_PID=$!
13   echo "Connecting GDB to PID ${APP_PID}..."
14   gdb --command=./commands.gdb - ${APP_PID} >>gdb.log 2>>gdb.err
15 else
16   ${INSTALL_DIR}/bin/GeomApp
17 fi