]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Makefile: remove redundant munging of @@INSTLIBDIR@@
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 30 May 2010 17:12:41 +0000 (17:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jun 2010 00:47:36 +0000 (17:47 -0700)
Junio originally added this in f6276fe159 for use in `unshift @INC,
'@@INSTLIBDIR@@'' in git-fmt-merge-msg.perl. That program was since
then rewritten in C in 00449f992b. And since 6fcca938b0 all Perl
programs use `use lib' to set their @INC path.

There's been no @@INSTLIBDIR@@ in any Perl script to replace since
then. So there's no reason to keep it around.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index 61ad6688a34a2957c074854ba1d1d914b529ea8c..0c7c5d163e7a4ffa330d375d83985d559fb04c1a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1545,11 +1545,10 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
        sed -e '1{' \
            -e '        s|#!.*perl|#!$(PERL_PATH_SQ)|' \
            -e '        h' \
-           -e '        s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@"));=' \
+           -e '        s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "'"$$INSTLIBDIR"'"));=' \
            -e '        H' \
            -e '        x' \
            -e '}' \
-           -e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
            -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
            $@.perl >$@+ && \
        chmod +x $@+ && \