use warnings;
use diagnostics;
use Module::Build;
+use File::Find;
+use Data::Dumper;
+
+my %doc_files = (
+ 'Changelog' => 'doc/Changelog',
+ );
+sub add_doc {
+ if (-f $_) {
+ $doc_files{$File::Find::name} = $File::Find::name;
+ }
+}
+find(\&add_doc, 'doc');
+#print Dumper(\%doc_files);
my $cm = Module::Build->new
(
dist_version_from => 'lib/Crypt/Monkeysphere/MSVA.pm',
dist_abstract => 'Monkeysphere public key validation daemon',
script_files => 'script/',
+ doc_files => \%doc_files,
+ install_path => { 'doc' => '/usr/share/doc/msva' },
);
+$cm->add_build_element('doc');
$cm->create_build_script;