about summary refs log tree commit diff
path: root/third_party/git/t/lib-gettext.sh
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-21T10·03+0300
committerVincent Ambo <mail@tazj.in>2021-09-21T11·29+0300
commit43b1791ec601732ac31195df96781a848360a9ac (patch)
treedaae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/t/lib-gettext.sh
parent2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (diff)
chore(3p/git): Unvendor git and track patches instead r/2903
This was vendored a long time ago under the expectation that keeping
it in sync with cgit would be easier this way, but it has proven not
to be a big issue.

On the other hand, a vendored copy of git is an annoying maintenance
burden. It is much easier to rebase the single (dottime) patch that we
have.

This removes the vendored copy of git and instead passes the git
source code to cgit via `pkgs.srcOnly`, which includes the applied
patch so that cgit can continue rendering dottime.

Change-Id: If31f62dea7ce688fd1b9050204e9378019775f2b
Diffstat (limited to 'third_party/git/t/lib-gettext.sh')
-rw-r--r--third_party/git/t/lib-gettext.sh63
1 files changed, 0 insertions, 63 deletions
diff --git a/third_party/git/t/lib-gettext.sh b/third_party/git/t/lib-gettext.sh
deleted file mode 100644
index 2139b427ca1c..000000000000
--- a/third_party/git/t/lib-gettext.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-# 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_BUILD_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 && test_have_prereq C_LOCALE_OUTPUT
-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