From: Junio C Hamano Date: Mon, 23 Jan 2012 22:01:15 GMT Subject: Re: [PATCH] add a Makefile switch to avoid gettext translation in shell scripts Message-ID: <7v1uqq84es.fsf@alter.siamese.dyndns.org> In-Reply-To: <20120119195222.GA5011@blimp.dmz> Alex Riesen writes: > Some systems have gettext.sh (GNU gettext) installed, but it is either broken > or misconfigured in such a way so its output is not usable. > For instance, on this particular system, a Cygwin installations gettext > produces no output whatsoever. > > In case the users of these systems are unable or not interested in fixing > them, setting the new Makefile switch should help: > > USE_FALLTHROUGH_GETTEXT_SCHEME=yes > > This will replace the translation routines with fallthrough versions, which > currently used only for regression testing. > > Signed-off-by: Alex Riesen > --- I'll split this into two, the first one only to restructure the code and the guts of this one that avoids the autodetection. Also I'd rename this so that: $ make USE_GETTEXT_SCHEME=fallthrough $ make USE_GETTEXT_SCHEME=gnu could be used to avoid extra and unnecessary runtime overhead when the person building git knows what is on the system.