mirror of
https://github.com/git/git.git
synced 2024-11-02 07:17:58 +01:00
Merge branch 'jn/perl-makemaker-leading-paths'
* jn/perl-makemaker-leading-paths: perl/Makefile: Fix a missing double-quote perl/Makefile: move "mkdir -p" to module installation loop for maintainability
This commit is contained in:
commit
cd0c96a9e3
1 changed files with 14 additions and 2 deletions
|
@ -34,22 +34,34 @@ modules += Git/SVN/Ra
|
||||||
|
|
||||||
$(makfile): ../GIT-CFLAGS Makefile
|
$(makfile): ../GIT-CFLAGS Makefile
|
||||||
echo all: private-Error.pm Git.pm Git/I18N.pm > $@
|
echo all: private-Error.pm Git.pm Git/I18N.pm > $@
|
||||||
echo ' mkdir -p blib/lib/Git/SVN/Memoize' >> $@
|
|
||||||
set -e; \
|
set -e; \
|
||||||
for i in $(modules); \
|
for i in $(modules); \
|
||||||
do \
|
do \
|
||||||
|
if test $$i = $${i%/*}; \
|
||||||
|
then \
|
||||||
|
subdir=; \
|
||||||
|
else \
|
||||||
|
subdir=/$${i%/*}; \
|
||||||
|
fi; \
|
||||||
echo ' $(RM) blib/lib/'$$i'.pm' >> $@; \
|
echo ' $(RM) blib/lib/'$$i'.pm' >> $@; \
|
||||||
|
echo ' mkdir -p blib/lib'$$subdir >> $@; \
|
||||||
echo ' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@; \
|
echo ' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@; \
|
||||||
done
|
done
|
||||||
echo ' $(RM) blib/lib/Error.pm' >> $@
|
echo ' $(RM) blib/lib/Error.pm' >> $@
|
||||||
'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
|
'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
|
||||||
echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
|
echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
|
||||||
echo install: >> $@
|
echo install: >> $@
|
||||||
echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)/Git/SVN/Memoize"' >> $@
|
|
||||||
set -e; \
|
set -e; \
|
||||||
for i in $(modules); \
|
for i in $(modules); \
|
||||||
do \
|
do \
|
||||||
|
if test $$i = $${i%/*}; \
|
||||||
|
then \
|
||||||
|
subdir=; \
|
||||||
|
else \
|
||||||
|
subdir=/$${i%/*}; \
|
||||||
|
fi; \
|
||||||
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
|
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
|
||||||
|
echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)'$$subdir'"' >> $@; \
|
||||||
echo ' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
|
echo ' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
|
||||||
done
|
done
|
||||||
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
|
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
|
||||||
|
|
Loading…
Reference in a new issue