mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
Update gdb_launch script for relative path.
This commit is contained in:
parent
072a0a5d26
commit
e143fe8abd
@ -1,6 +1,6 @@
|
|||||||
SCRIPT_ABS_FILENAME=`LC_ALL=en_US.ISO8859-1 perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"`
|
SCRIPT_ABS_FILENAME=`LC_ALL=en_US.ISO8859-1 perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"`
|
||||||
SCRIPT_DIR=`dirname "$SCRIPT_ABS_FILENAME"`
|
SCRIPT_DIR=`dirname "$SCRIPT_ABS_FILENAME"`
|
||||||
|
SHELL_PWD=$PWD
|
||||||
|
|
||||||
OSTYPE=`uname -s`
|
OSTYPE=`uname -s`
|
||||||
#echo $OSTYPE
|
#echo $OSTYPE
|
||||||
@ -19,6 +19,11 @@ else
|
|||||||
clover_debug_file="${1%.*}".debug
|
clover_debug_file="${1%.*}".debug
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$clover_debug_file" != '/'* ]]
|
||||||
|
then
|
||||||
|
clover_debug_file="$SHELL_PWD"/"$clover_debug_file"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! [ -f "$clover_debug_file" ]
|
if ! [ -f "$clover_debug_file" ]
|
||||||
then
|
then
|
||||||
echo Debug file "$clover_debug_file" doesn\'t exist
|
echo Debug file "$clover_debug_file" doesn\'t exist
|
||||||
|
Loading…
Reference in New Issue
Block a user