Commit | Line | Data |
a2bd3796 |
1 | # When a long-standing branch is updated a README may still linger around |
2 | unlink '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 |
8 | my $dir = 'maint/.Generated_Pod'; |
9 | my $r_fn = "$dir/README"; |
a2bd3796 |
10 | |
11 | my $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 | |
23 | postamble <<"EOP"; |
24 | |
25 | clonedir_generate_files : dbic_clonedir_gen_readme |
26 | |
27 | dbic_clonedir_gen_readme : dbic_distdir_gen_dbic_pod |
28 | @{[ $start_file->($r_fn) ]} |
29 | \tpod2text $dir/lib/DBIx/Class.pod >> $r_fn |
30 | |
31 | create_distdir : dbic_distdir_regen_license |
32 | |
33 | dbic_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 | |
38 | EOP |
39 | |
40 | |
41 | # keep the Makefile.PL eval happy |
42 | 1; |