Subject: | Makefile.PL substitution quoting issues |
Environment: HP-UX 11.0, ksh, Perl 5.6.1.
$ make
Can't find string terminator "'" anywhere before EOF at -e line 1.
*** Error exit code 255
Stop.
It appears that there is a problem with nesting quotes in the makefile. Attached is a patch that quotes the outer quotes on the perl pattern replacement call.
Not sure if this will also work in other shells or OS. Needs testing in other environments.
Brian
*** Makefile.PL Tue Jan 18 09:10:09 2005
--- Makefile.PL.old Tue Jan 11 08:47:01 2005
***************
*** 28,35 ****
}
my $pm_filter = $use_unicode
! ? q{perl -pi -e \"s!UNI_YES ! !g;s!UNI_NO !\\#!g\"}
! : q{perl -pi -e \"s!UNI_NO ! !g;s!UNI_YES !\\#!g\"};
WriteMakefile(
NAME => 'PDF::Template',
--- 28,35 ----
}
my $pm_filter = $use_unicode
! ? q{perl -pi -e "s!UNI_YES ! !g;s!UNI_NO !\\#!g"}
! : q{perl -pi -e "s!UNI_NO ! !g;s!UNI_YES !\\#!g"};
WriteMakefile(
NAME => 'PDF::Template',