Makefile: write absolute program path into bin-wrappers
Write the absolute program path into our bin-wrappers. This allows us to simplify the Meson build instructions we are about to introduce a bit. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
95bcd6f0b7
commit
d2407bb8dc
@ -22,15 +22,15 @@ export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR
|
||||
|
||||
case "$GIT_DEBUGGER" in
|
||||
'')
|
||||
exec "${GIT_EXEC_PATH}/@PROG@" "$@"
|
||||
exec "@PROG@" "$@"
|
||||
;;
|
||||
1)
|
||||
unset GIT_DEBUGGER
|
||||
exec gdb --args "${GIT_EXEC_PATH}/@PROG@" "$@"
|
||||
exec gdb --args "@PROG@" "$@"
|
||||
;;
|
||||
*)
|
||||
GIT_DEBUGGER_ARGS="$GIT_DEBUGGER"
|
||||
unset GIT_DEBUGGER
|
||||
exec ${GIT_DEBUGGER_ARGS} "${GIT_EXEC_PATH}/@PROG@" "$@"
|
||||
exec ${GIT_DEBUGGER_ARGS} "@PROG@" "$@"
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user