Apparently -i and -jN do not work on win32, what the hell
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 54_autogen_legalese_and_README.pl
CommitLineData
a2bd3796 1# When a long-standing branch is updated a README may still linger around
2unlink 'README' if -f 'README';
3
4# Makefile syntax allows adding extra dep-specs for already-existing targets,
5# and simply appends them on *LAST*-come *FIRST*-serve basis.
6# This allows us to inject extra depenencies for standard EUMM targets
7
aff5e9c1 8my $dir = 'maint/.Generated_Pod';
9my $r_fn = "$dir/README";
a2bd3796 10
11my $start_file = sub {
12 my $fn = $mm_proto->quote_literal(shift);
13 return join "\n",
14 qq{\t\$(NOECHO) \$(RM_F) $fn},
15 ( map { qq(\t\$(NOECHO) \$(ECHO) "$_" >> $fn) } (
16 "DBIx::Class is Copyright (c) 2005-@{[ (gmtime)[5] + 1900 ]} by mst, castaway, ribasushi, and others.",
17 "See AUTHORS and LICENSE included with this distribution. All rights reserved.",
18 "",
19 )),
20 ;
21};
22
23postamble <<"EOP";
24
25clonedir_generate_files : dbic_clonedir_gen_readme
26
27dbic_clonedir_gen_readme : dbic_distdir_gen_dbic_pod
28@{[ $start_file->($r_fn) ]}
29\tpod2text $dir/lib/DBIx/Class.pod >> $r_fn
30
31create_distdir : dbic_distdir_regen_license
32
33dbic_distdir_regen_license :
aff5e9c1 34@{[ $start_file->( Meta->name . '-' . Meta->version . '/LICENSE' ) ]}
a2bd3796 35\t@{[ $mm_proto->oneliner('cat', ['-MExtUtils::Command']) ]} LICENSE >> \$(DISTVNAME)/LICENSE
1fb834df 36@{[ $crlf_fixup->('$(DISTVNAME)/LICENSE') ]}
a2bd3796 37
38EOP
39
40
41# keep the Makefile.PL eval happy
421;