mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-22 11:25:42 +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_DIR=`dirname "$SCRIPT_ABS_FILENAME"`
|
||||
|
||||
SHELL_PWD=$PWD
|
||||
|
||||
OSTYPE=`uname -s`
|
||||
#echo $OSTYPE
|
||||
@ -19,6 +19,11 @@ else
|
||||
clover_debug_file="${1%.*}".debug
|
||||
fi
|
||||
|
||||
if [[ "$clover_debug_file" != '/'* ]]
|
||||
then
|
||||
clover_debug_file="$SHELL_PWD"/"$clover_debug_file"
|
||||
fi
|
||||
|
||||
if ! [ -f "$clover_debug_file" ]
|
||||
then
|
||||
echo Debug file "$clover_debug_file" doesn\'t exist
|
||||
|
Loading…
Reference in New Issue
Block a user