2009-12-03 06:14:05 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# wrap-for-bin.sh: Template for git executable wrapper scripts
|
|
|
|
# to run test suite against sandbox, but with only bindir-installed
|
|
|
|
# executables in PATH. The Makefile copies this into various
|
|
|
|
# files in bin-wrappers, substituting
|
|
|
|
# @@BUILD_DIR@@ and @@PROG@@.
|
|
|
|
|
|
|
|
GIT_EXEC_PATH='@@BUILD_DIR@@'
|
2010-03-03 01:27:03 +01:00
|
|
|
if test -n "$NO_SET_GIT_TEMPLATE_DIR"
|
|
|
|
then
|
|
|
|
unset GIT_TEMPLATE_DIR
|
|
|
|
else
|
2010-02-26 05:00:21 +01:00
|
|
|
GIT_TEMPLATE_DIR='@@BUILD_DIR@@/templates/blt'
|
2010-03-03 01:27:03 +01:00
|
|
|
export GIT_TEMPLATE_DIR
|
|
|
|
fi
|
2009-12-03 06:14:05 +01:00
|
|
|
GITPERLLIB='@@BUILD_DIR@@/perl/blib/lib'
|
|
|
|
PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH"
|
2010-03-03 01:27:03 +01:00
|
|
|
export GIT_EXEC_PATH GITPERLLIB PATH
|
2009-12-03 06:14:05 +01:00
|
|
|
|
|
|
|
exec "${GIT_EXEC_PATH}/@@PROG@@" "$@"
|