Skip to content

Commit 1fc2cbc

Browse files
drafnelgitster
authored andcommitted
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>
1 parent f44bc33 commit 1fc2cbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

perl/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ $(makfile): ../GIT-CFLAGS Makefile
2929
'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
3030
echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
3131
echo install: >> $@
32-
echo ' mkdir -p $(instdir_SQ)' >> $@
33-
echo ' $(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@
34-
echo ' $(RM) $(instdir_SQ)/Error.pm' >> $@
32+
echo ' mkdir -p "$(instdir_SQ)"' >> $@
33+
echo ' $(RM) "$(instdir_SQ)/Git.pm"; cp Git.pm "$(instdir_SQ)"' >> $@
34+
echo ' $(RM) "$(instdir_SQ)/Error.pm"' >> $@
3535
'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
36-
echo ' cp private-Error.pm $(instdir_SQ)/Error.pm' >> $@
36+
echo ' cp private-Error.pm "$(instdir_SQ)/Error.pm"' >> $@
3737
echo instlibdir: >> $@
3838
echo ' echo $(instdir_SQ)' >> $@
3939
else

0 commit comments

Comments
 (0)