Matthew Ogilvie | ea92519 | 2009-12-02 22:14:05 -0700 | [diff] [blame] | 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@@ and @@PROG@@. |
| 8 | |
| 9 | GIT_EXEC_PATH='@@BUILD_DIR@@' |
Junio C Hamano | 160ad14 | 2010-03-02 16:27:03 -0800 | [diff] [blame] | 10 | if test -n "$NO_SET_GIT_TEMPLATE_DIR" |
| 11 | then |
| 12 | unset GIT_TEMPLATE_DIR |
| 13 | else |
Steven Drake | a94d305 | 2010-02-26 17:00:21 +1300 | [diff] [blame] | 14 | GIT_TEMPLATE_DIR='@@BUILD_DIR@@/templates/blt' |
Junio C Hamano | 160ad14 | 2010-03-02 16:27:03 -0800 | [diff] [blame] | 15 | export GIT_TEMPLATE_DIR |
| 16 | fi |
Benoit Person | 8bade1e | 2013-07-04 22:38:55 +0200 | [diff] [blame] | 17 | GITPERLLIB='@@BUILD_DIR@@/perl/blib/lib'"${GITPERLLIB:+:$GITPERLLIB}" |
Ævar Arnfjörð Bjarmason | 5e9637c | 2011-11-18 00:14:42 +0100 | [diff] [blame] | 18 | GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale' |
Matthew Ogilvie | ea92519 | 2009-12-02 22:14:05 -0700 | [diff] [blame] | 19 | PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH" |
Ævar Arnfjörð Bjarmason | 5e9637c | 2011-11-18 00:14:42 +0100 | [diff] [blame] | 20 | export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR |
Matthew Ogilvie | ea92519 | 2009-12-02 22:14:05 -0700 | [diff] [blame] | 21 | |
| 22 | exec "${GIT_EXEC_PATH}/@@PROG@@" "$@" |