Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/bin-wrappers/wrap-for-bin.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / bin-wrappers / wrap-for-bin.sh` 37 lines ยท 910 bytes Raw Blame History 1 #!/bin/sh 2 3 # wrap-for-bin.sh: Template for git executable wrapper scripts 4 # to run test suite against sandbox, but with only bindir-installed 5 # executables in PATH. The Makefile copies this into various 6 # files in bin-wrappers, substituting 7 # @BUILD_DIR@, @TEMPLATE_DIR@ and @PROG@. 8 9 GIT_EXEC_PATH='@BUILD_DIR@' 10 if test -n "$NO_SET_GIT_TEMPLATE_DIR" 11 then 12 unset GIT_TEMPLATE_DIR 13 else 14 GIT_TEMPLATE_DIR='@TEMPLATE_DIR@' 15 export GIT_TEMPLATE_DIR 16 fi 17 MERGE_TOOLS_DIR='@MERGE_TOOLS_DIR@' 18 GITPERLLIB='@GITPERLLIB@'"${GITPERLLIB:+:$GITPERLLIB}" 19 GIT_TEXTDOMAINDIR='@GIT_TEXTDOMAINDIR@' 20 PATH='@BUILD_DIR@/bin-wrappers:'"$PATH" 21 22 export MERGE_TOOLS_DIR GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR 23 24 case "$GIT_DEBUGGER" in 25 '') 26 exec "@PROG@" "$@" 27 ;; 28 1) 29 unset GIT_DEBUGGER 30 exec gdb --args "@PROG@" "$@" 31 ;; 32 *) 33 GIT_DEBUGGER_ARGS="$GIT_DEBUGGER" 34 unset GIT_DEBUGGER 35 exec ${GIT_DEBUGGER_ARGS} "@PROG@" "$@" 36 ;; 37 esac