Brandon Casey [off-list ref] writes:
Use double quotes to protect against paths which may contain spaces.
...
+ echo ' mkdir -p "$(instdir_SQ)"' >> $@
Is this sufficient? We seem to apply double-sq when writing shell
scriptlet in GIT-BUILD-OPTIONS from the main Makefile, and I suspect you
would need to do something similar.
Junio C Hamano wrote:
Brandon Casey [off-list ref] writes:
quoted
Use double quotes to protect against paths which may contain spaces.
...
+ echo ' mkdir -p "$(instdir_SQ)"' >> $@
Is this sufficient? We seem to apply double-sq when writing shell
scriptlet in GIT-BUILD-OPTIONS from the main Makefile, and I suspect you
would need to do something similar.
It seems to be sufficient. The double quotes survived into my perl.mak file
and the two perl modules were installed correctly when I supplied a prefix
with spaces. Is there something else to be concerned about?
perl.mak:
all: private-Error.pm Git.pm
mkdir -p blib/lib
rm -f blib/lib/Git.pm; cp Git.pm blib/lib/
rm -f blib/lib/Error.pm
cp private-Error.pm blib/lib/Error.pm
install:
mkdir -p "/home/casey/opt/SunOS spaces/sun4u/lib"
rm -f "/home/casey/opt/SunOS spaces/sun4u/lib/Git.pm"; cp Git.pm "/home/casey/opt/SunOS spaces/sun4u/lib"
rm -f "/home/casey/opt/SunOS spaces/sun4u/lib/Error.pm"
cp private-Error.pm "/home/casey/opt/SunOS spaces/sun4u/lib/Error.pm"
instlibdir:
echo /home/casey/opt/SunOS spaces/sun4u/lib
-brandon