perl/Makefile: handle paths with spaces in the NO_PERL_MAKEMAKER section
Use double quotes to protect against paths which may contain spaces. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f44bc33c72
commit
1fc2cbc1d8
@ -29,11 +29,11 @@ $(makfile): ../GIT-CFLAGS Makefile
|
|||||||
'$(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 $(instdir_SQ)' >> $@
|
echo ' mkdir -p "$(instdir_SQ)"' >> $@
|
||||||
echo ' $(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@
|
echo ' $(RM) "$(instdir_SQ)/Git.pm"; cp Git.pm "$(instdir_SQ)"' >> $@
|
||||||
echo ' $(RM) $(instdir_SQ)/Error.pm' >> $@
|
echo ' $(RM) "$(instdir_SQ)/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 $(instdir_SQ)/Error.pm' >> $@
|
echo ' cp private-Error.pm "$(instdir_SQ)/Error.pm"' >> $@
|
||||||
echo instlibdir: >> $@
|
echo instlibdir: >> $@
|
||||||
echo ' echo $(instdir_SQ)' >> $@
|
echo ' echo $(instdir_SQ)' >> $@
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user