1 # When a long-standing branch is updated a README may still linger around
2 unlink 'README' if -f 'README';
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
8 my $dir = 'maint/.Generated_Pod';
9 my $r_fn = "$dir/README";
11 my $start_file = sub {
12 my $fn = $mm_proto->quote_literal(shift);
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.",
25 clonedir_generate_files : dbic_clonedir_gen_readme
27 dbic_clonedir_gen_readme : dbic_distdir_gen_dbic_pod
28 @{[ $start_file->($r_fn) ]}
29 \tpod2text $dir/lib/DBIx/Class.pod >> $r_fn
31 create_distdir : dbic_distdir_regen_license
33 dbic_distdir_regen_license :
34 @{[ $start_file->( Meta->name . '-' . Meta->version . '/LICENSE' ) ]}
35 \t@{[ $mm_proto->oneliner('cat', ['-MExtUtils::Command']) ]} LICENSE >> \$(DISTVNAME)/LICENSE
36 @{[ $crlf_fixup->('$(DISTVNAME)/LICENSE') ]}
41 # keep the Makefile.PL eval happy