2009-12-03 13:14:05 +08: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 08:27:03 +08:00
|
|
|
if test -n "$NO_SET_GIT_TEMPLATE_DIR"
|
|
|
|
then
|
|
|
|
unset GIT_TEMPLATE_DIR
|
|
|
|
else
|
2010-02-26 12:00:21 +08:00
|
|
|
GIT_TEMPLATE_DIR='@@BUILD_DIR@@/templates/blt'
|
2010-03-03 08:27:03 +08:00
|
|
|
export GIT_TEMPLATE_DIR
|
|
|
|
fi
|
2009-12-03 13:14:05 +08:00
|
|
|
GITPERLLIB='@@BUILD_DIR@@/perl/blib/lib'
|
|
|
|
PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH"
|
2010-03-03 08:27:03 +08:00
|
|
|
export GIT_EXEC_PATH GITPERLLIB PATH
|
2009-12-03 13:14:05 +08:00
|
|
|
|
|
|
|
exec "${GIT_EXEC_PATH}/@@PROG@@" "$@"
|