From: Lea Wiemann Date: Tue, 03 Jun 2008 00:20:57 GMT Subject: Re: [PATCH] test-lib.sh: set PERL5LIB instead of GITPERLLIB Message-ID: <48448E69.30203@gmail.com> In-Reply-To: <7vfxrwa008.fsf@gitster.siamese.dyndns.org> Junio C Hamano wrote: > the primary Makefile has this rule to munge our perl scripts: > > [snip] > sed -e '1{' \ > -e ' s|#!.*perl|#!$(PERL_PATH_SQ)|' \ > -e ' h' \ > -e ' s=.*=use lib (split(/:/, $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@"));=' \ > > so that people do not have to have that path on PERL5LIB in their > environment when they use [...] scripts that do "use Git" > > The real fix to the issue [is] to fix the build > procedure of gitweb/gitweb.perl so that the above script rewriting is also > applied to it. I'm not good enough with sed to fix this, so if anyone wants to write a patch to the Makefile that adds "use lib (split(/:/, $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@"))" to gitweb.perl, please go ahead. ;-) -- Lea