1 # without having the pod in the file itself, perldoc may very
2 # well show a *different* document, because perl and perldoc
3 # search @INC differently (crazy right?)
5 # make sure we delete and re-create the file - just an append
6 # will not do what one expects, because on unixy systems the
7 # target is symlinked to the original
9 # FIXME also on win32 EU::Command::cat() adds crlf even if the
10 # source files do not contain any :(
11 my $crlf_fixup = ($^O eq 'MSWin32' or $^O eq 'cygwin')
12 ? "\t@{[ $mm_proto->oneliner( qq(\$\$ENV{PERLIO}='unix' and system( \$\$^X, qw( -MExtUtils::Command -e dos2unix -- ), q(\$(DISTVNAME)/script/dbicadmin) ) ) ) ]}"
17 create_distdir : dbic_distdir_dbicadmin_pod_inject
19 dbic_distdir_dbicadmin_pod_inject :
20 \t\$(RM_F) \$(DISTVNAME)/script/dbicadmin
21 \t@{[ $mm_proto->oneliner('cat', ['-MExtUtils::Command']) ]} script/dbicadmin maint/.Generated_Pod/dbicadmin.pod > \$(DISTVNAME)/script/dbicadmin
25 # keep the Makefile.PL eval happy