]> git.mxchange.org Git - flightgear.git/blobdiff - scripts/debug/debug-fgfs
Connect the FlightGear /environment/turbulence-norm property to the
[flightgear.git] / scripts / debug / debug-fgfs
index 32c4f3015a991a66a456a74de246906f58c45d21..8683db29783c529d769f4842d5c2c15989b852bd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/bin/bash
 # $Id$
 #
 #
@@ -24,7 +24,7 @@
 # 
 #  adapt the following two entries to your needs:
 #
-fgfs="../FlightGear/src/Main/fgfs"
+fgfs="../../src/Main/fgfs"
 opt="--disable-game-mode --disable-fullscreen --fdm=magic"
 
 
@@ -53,7 +53,7 @@ while true; do
        -i)     cmd=""; gdb="" ;;
        -b)     gdb="" ;;
        -x)     extra="--single-step=yes --optimise=no --cleanup=no --dump-error=1" ;;
-       -c)     core=$(ls -t core*|head -1)
+       -c)     core=$(ls -t core* 2>/dev/null|head -1)
                if test -z $core; then
                        echo "$0: there's no core file"
                        exit 1
@@ -66,7 +66,7 @@ while true; do
 done
 
 if ! test -e "$fgfs"; then
-       echo "$0: there's no fgfs exectuable $fgfs"
+       echo "$0: there's no fgfs executable $fgfs"
        exit 2
 fi