mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
2ec075d903
Commite6e7530
(test helpers: move test-* to t/helper/ subdirectory - 2016-04-13) moves test-* to t/helper. However because bin-wrappers/* only depend on wrap-for-bin.sh, when switching between a branch that has this commit and one that does not, bin-wrappers/* may not be regenerated and point to the old/outdated test programs. This commit makes a non-functional change in wrap-for-bin.sh, just enough for 'make' to detect and re-execute wrap-for-bin.sh. When switching between a branch containing both this commit ande6e7530
and one containing neither, bin-wrappers/*, we should get fresh bin-wrappers/*. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
30 lines
819 B
Bash
30 lines
819 B
Bash
#!/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@@'
|
|
if test -n "$NO_SET_GIT_TEMPLATE_DIR"
|
|
then
|
|
unset GIT_TEMPLATE_DIR
|
|
else
|
|
GIT_TEMPLATE_DIR='@@BUILD_DIR@@/templates/blt'
|
|
export GIT_TEMPLATE_DIR
|
|
fi
|
|
GITPERLLIB='@@BUILD_DIR@@/perl/blib/lib'"${GITPERLLIB:+:$GITPERLLIB}"
|
|
GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale'
|
|
PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH"
|
|
|
|
export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR
|
|
|
|
if test -n "$GIT_TEST_GDB"
|
|
then
|
|
unset GIT_TEST_GDB
|
|
exec gdb --args "${GIT_EXEC_PATH}/@@PROG@@" "$@"
|
|
else
|
|
exec "${GIT_EXEC_PATH}/@@PROG@@" "$@"
|
|
fi
|