THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
946B

  1. #!/bin/sh
  2. # wrap-for-bin.sh: Template for git executable wrapper scripts
  3. # to run test suite against sandbox, but with only bindir-installed
  4. # executables in PATH. The Makefile copies this into various
  5. # files in bin-wrappers, substituting
  6. # @@BUILD_DIR@@ and @@PROG@@.
  7. GIT_EXEC_PATH='@@BUILD_DIR@@'
  8. if test -n "$NO_SET_GIT_TEMPLATE_DIR"
  9. then
  10. unset GIT_TEMPLATE_DIR
  11. else
  12. GIT_TEMPLATE_DIR='@@BUILD_DIR@@/templates/blt'
  13. export GIT_TEMPLATE_DIR
  14. fi
  15. GITPERLLIB='@@BUILD_DIR@@/perl/build/lib'"${GITPERLLIB:+:$GITPERLLIB}"
  16. GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale'
  17. PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH"
  18. export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR
  19. case "$GIT_DEBUGGER" in
  20. '')
  21. exec "${GIT_EXEC_PATH}/@@PROG@@" "$@"
  22. ;;
  23. 1)
  24. unset GIT_DEBUGGER
  25. exec gdb --args "${GIT_EXEC_PATH}/@@PROG@@" "$@"
  26. ;;
  27. *)
  28. GIT_DEBUGGER_ARGS="$GIT_DEBUGGER"
  29. unset GIT_DEBUGGER
  30. exec ${GIT_DEBUGGER_ARGS} "${GIT_EXEC_PATH}/@@PROG@@" "$@"
  31. ;;
  32. esac