]> Pileus Git - ~andy/git/commitdiff
Allow PERL_PATH="/usr/bin/env perl"
authorBryan Larsen <bryan@larsen.st>
Thu, 3 May 2007 22:58:56 +0000 (18:58 -0400)
committerJunio C Hamano <junkio@cox.net>
Fri, 4 May 2007 05:36:32 +0000 (22:36 -0700)
There is a mechanism PERL_PATH in the Makefile to specify path to
Perl binary, but sometimes it is convenient to let 'env' figure
out where Perl comes from, with PERL_PATH="/usr/bin/env perl".

Allowing this would make things easier to MacPorts, where we wish
to work with the MacPorts perl if it is installed, but fall back
to the system perl if it isn't.

Signed-off-by: Bryan Larsen <bryan@larsen.st>
Signed-off-by: Junio C Hamano <junkio@cox.net>
perl/Makefile

index 17d004e5a0a19dc59b928a96a71d1470deb06e53..0d695fd2f35f91b47455dc382d86b52bb51088d2 100644 (file)
@@ -33,7 +33,7 @@ $(makfile): ../GIT-CFLAGS Makefile
        echo '  echo $(instdir_SQ)' >> $@
 else
 $(makfile): Makefile.PL ../GIT-CFLAGS
-       '$(PERL_PATH_SQ)' $< PREFIX='$(prefix_SQ)'
+       $(PERL_PATH) $< PREFIX='$(prefix_SQ)'
 endif
 
 # this is just added comfort for calling make directly in perl dir