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 9GIT_EXEC_PATH='@@BUILD_DIR@@' 10iftest -n"$NO_SET_GIT_TEMPLATE_DIR" 11then 12unset GIT_TEMPLATE_DIR 13else 14 GIT_TEMPLATE_DIR='@@BUILD_DIR@@/templates/blt' 15export GIT_TEMPLATE_DIR 16fi 17GITPERLLIB='@@BUILD_DIR@@/perl/build/lib'"${GITPERLLIB:+:$GITPERLLIB}" 18GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale' 19PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH" 20 21export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR 22 23iftest -n"$GIT_TEST_GDB" 24then 25unset GIT_TEST_GDB 26exec gdb --args"${GIT_EXEC_PATH}/@@PROG@@""$@" 27else 28exec"${GIT_EXEC_PATH}/@@PROG@@""$@" 29fi