Subject: | filenames are not escaped when inserted into Makefile postamble |
__postamble_share_dir() should be escaping special characters in the list of filenames it spews into the postamble section of the Makefile.
For example, see what happens with https://metacpan.org/release/JJNAPIORK/Skeletor-Template-Example-0.002:
# --- MakeMaker postamble section:
config::
$(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)'\'')' -- \
share/skel/$name/lib/$project_fullpath/Controller/Game.pm.ttt $(INST_LIB)/auto/share/dist/$(DISTNAME)/skel/$name/lib/$project_fullpath/Controller/Game.pm.ttt \
....
Which, when run, results in the error:
ERROR: Cannot copy 'share/skel/ame/lib/roject_fullpath/Server.pm.ttt' to 'blib/lib/auto/share/dist/Skeletor-Template-Example/skel/ame/lib/roject_fullpath/Server.pm.ttt': No such file or directory
...because $name and $project are being evaluated as variables.