зеркало из https://github.com/microsoft/git.git
t/lib-gettext: test installed git-sh-i18n if GIT_TEST_INSTALLED is set
It makes very, very little sense to test the built git-sh-i18n when the user asked specifically to test another one. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
3af4c7156c
Коммит
875bf17e39
|
@ -10,7 +10,12 @@ GIT_TEXTDOMAINDIR="$GIT_BUILD_DIR/po/build/locale"
|
||||||
GIT_PO_PATH="$GIT_BUILD_DIR/po"
|
GIT_PO_PATH="$GIT_BUILD_DIR/po"
|
||||||
export GIT_TEXTDOMAINDIR GIT_PO_PATH
|
export GIT_TEXTDOMAINDIR GIT_PO_PATH
|
||||||
|
|
||||||
. "$GIT_BUILD_DIR"/git-sh-i18n
|
if test -n "$GIT_TEST_INSTALLED"
|
||||||
|
then
|
||||||
|
. "$(git --exec-path)"/git-sh-i18n
|
||||||
|
else
|
||||||
|
. "$GIT_BUILD_DIR"/git-sh-i18n
|
||||||
|
fi
|
||||||
|
|
||||||
if test_have_prereq GETTEXT && ! test_have_prereq GETTEXT_POISON
|
if test_have_prereq GETTEXT && ! test_have_prereq GETTEXT_POISON
|
||||||
then
|
then
|
||||||
|
|
Загрузка…
Ссылка в новой задаче