git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
blob dcd6e9c3f75e4bc236ef01761b4b8ca6e5d7899b 1650 bytes (raw)
name: t/lib-gettext.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
 
# Initialization and Icelandic locale for basic git i18n tests,
# which source this scriptlet instead of ./test-lib.sh.
#
# Copyright (c) 2010 Ævar Arnfjörð Bjarmason
#

. ./test-lib.sh

GIT_TEXTDOMAINDIR="$GIT_BUILD_DIR/po/build/locale"
GIT_PO_PATH="$GIT_SOURCE_DIR/po"
export GIT_TEXTDOMAINDIR GIT_PO_PATH

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
then
	# is_IS.UTF-8 on Solaris and FreeBSD, is_IS.utf8 on Debian
	is_IS_locale=$(locale -a 2>/dev/null |
		sed -n '/^is_IS\.[uU][tT][fF]-*8$/{
		p
		q
	}')
	# is_IS.ISO8859-1 on Solaris and FreeBSD, is_IS.iso88591 on Debian
	is_IS_iso_locale=$(locale -a 2>/dev/null |
		sed -n '/^is_IS\.[iI][sS][oO]8859-*1$/{
		p
		q
	}')

	# Export them as an environment variable so the t0202/test.pl Perl
	# test can use it too
	export is_IS_locale is_IS_iso_locale

	if test -n "$is_IS_locale" &&
		test $GIT_INTERNAL_GETTEXT_SH_SCHEME != "fallthrough"
	then
		# Some of the tests need the reference Icelandic locale
		test_set_prereq GETTEXT_LOCALE

		# Exporting for t0202/test.pl
		GETTEXT_LOCALE=1
		export GETTEXT_LOCALE
		say "# lib-gettext: Found '$is_IS_locale' as an is_IS UTF-8 locale"
	else
		say "# lib-gettext: No is_IS UTF-8 locale available"
	fi

	if test -n "$is_IS_iso_locale" &&
		test $GIT_INTERNAL_GETTEXT_SH_SCHEME != "fallthrough"
	then
		# Some of the tests need the reference Icelandic locale
		test_set_prereq GETTEXT_ISO_LOCALE

		say "# lib-gettext: Found '$is_IS_iso_locale' as an is_IS ISO-8859-1 locale"
	else
		say "# lib-gettext: No is_IS ISO-8859-1 locale available"
	fi
fi

debug log:

solving dcd6e9c3f75 ...
found dcd6e9c3f75 in https://public-inbox.org/git/patch-3.9-addaf73992f-20221021T091013Z-avarab@gmail.com/ ||
	https://public-inbox.org/git/patch-v4-06.14-6c254f8cb9f-20221103T160255Z-avarab@gmail.com/ ||
	https://public-inbox.org/git/patch-v3-05.12-5c7b64286ce-20221101T225022Z-avarab@gmail.com/ ||
	https://public-inbox.org/git/patch-v2-05.11-6387682db06-20221027T032622Z-avarab@gmail.com/ ||
	https://public-inbox.org/git/patch-v6-06.15-1f326944a07-20221206T001617Z-avarab@gmail.com/ ||
	https://public-inbox.org/git/patch-v5-06.15-7ee341245a8-20221202T110947Z-avarab@gmail.com/
found cc6bb2cdeaa in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 cc6bb2cdeaae7b5bb23211c0d9c37c9deb39e14f	t/lib-gettext.sh

applying [1/1] https://public-inbox.org/git/patch-3.9-addaf73992f-20221021T091013Z-avarab@gmail.com/
diff --git a/t/lib-gettext.sh b/t/lib-gettext.sh
index cc6bb2cdeaa..dcd6e9c3f75 100644

Checking patch t/lib-gettext.sh...
Applied patch t/lib-gettext.sh cleanly.

skipping https://public-inbox.org/git/patch-v4-06.14-6c254f8cb9f-20221103T160255Z-avarab@gmail.com/ for dcd6e9c3f75
skipping https://public-inbox.org/git/patch-v3-05.12-5c7b64286ce-20221101T225022Z-avarab@gmail.com/ for dcd6e9c3f75
skipping https://public-inbox.org/git/patch-v2-05.11-6387682db06-20221027T032622Z-avarab@gmail.com/ for dcd6e9c3f75
skipping https://public-inbox.org/git/patch-v6-06.15-1f326944a07-20221206T001617Z-avarab@gmail.com/ for dcd6e9c3f75
skipping https://public-inbox.org/git/patch-v5-06.15-7ee341245a8-20221202T110947Z-avarab@gmail.com/ for dcd6e9c3f75
index at:
100644 dcd6e9c3f75e4bc236ef01761b4b8ca6e5d7899b	t/lib-gettext.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).