From: Brandon Casey Date: Tue, 5 Aug 2008 23:23:08 +0000 (-0500) Subject: perl/Makefile: handle paths with spaces in the NO_PERL_MAKEMAKER section X-Git-Tag: v1.6.0-rc2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1fc2cbc1d8614c469d28a5a8f11a904f294245af;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/perl/Makefile b/perl/Makefile index b8547db2c..e3dd1a554 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -29,11 +29,11 @@ $(makfile): ../GIT-CFLAGS Makefile '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \ echo ' cp private-Error.pm blib/lib/Error.pm' >> $@ echo install: >> $@ - echo ' mkdir -p $(instdir_SQ)' >> $@ - echo ' $(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@ - echo ' $(RM) $(instdir_SQ)/Error.pm' >> $@ + echo ' mkdir -p "$(instdir_SQ)"' >> $@ + echo ' $(RM) "$(instdir_SQ)/Git.pm"; cp Git.pm "$(instdir_SQ)"' >> $@ + echo ' $(RM) "$(instdir_SQ)/Error.pm"' >> $@ '$(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 ' echo $(instdir_SQ)' >> $@ else