Skip to content

Commit f6276fe

Browse files
author
Junio C Hamano
committed
Git.pm: tentative fix to test the freshly built Git.pm
Signed-off-by: Junio C Hamano <[email protected]>
1 parent d595a47 commit f6276fe

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,12 @@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
531531
chmod +x $@+
532532
mv $@+ $@
533533

534-
$(patsubst %.perl,%,$(SCRIPT_PERL)) : % : %.perl
534+
$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/Makefile
535+
$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
535536
rm -f $@ $@+
536-
sed -e '1s|#!.*perl\(.*\)|#!$(PERL_PATH_SQ)\1 -I'"$$(make -s -C perl instlibdir)"'|' \
537+
INSTLIBDIR=$$(make -s -C perl instlibdir) && \
538+
sed -e '1s|#!.*perl\(.*\)|#!$(PERL_PATH_SQ)\1|' \
539+
-e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
537540
-e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
538541
$@.perl >$@+
539542
chmod +x $@+

git-fmt-merge-msg.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Read .git/FETCH_HEAD and make a human readable merge message
66
# by grouping branches and tags together to form a single line.
77

8+
unshift @INC, '@@INSTLIBDIR@@';
89
use strict;
910
use Git;
1011
use Error qw(:try);

0 commit comments

Comments
 (0)