From: Alex Riesen Date: Fri, 20 Jan 2012 20:13:01 GMT Subject: Re: [PATCH] git-sh-i18n: detect and avoid broken gettext(1) implementation Message-ID: In-Reply-To: <7vobtydu0o.fsf@alter.siamese.dyndns.org> On Fri, Jan 20, 2012 at 21:00, Junio C Hamano wrote: > IOW, the first step would look like the attached patch, and then we can > replace the entire "First decide" part if/elif/fi chain with just this: > >        # The scheme to use >        : ${GIT_INTERNAL_GETTEXT_SH_SCHEME:=@@GETTEXT_SH_SCHEME@@} > > so that t/lib-gettext.sh can define and export GIT_INTERNAL_GETTEXT_SH to > always get what it wants to test (fallthrough?). At build time, instead > of, or in addition to, the $(cmd_munge_script), we could replace the > single @@GETTEXT_SH_SCHEME@@ token above with whatever scheme we want to > use to hardcode the decision we make at the compile time. I can imagine a Solaris system being upgraded to GNU gettext _after_ Git installation. Hardcoding the decision might break git scripts then.